Skip to content

Development Installation

camdenmoors edited this page Jul 15, 2020 · 4 revisions

General Steps

Those steps are for developing locally and running the test suite.

  • Install ruby.
  • In your terminal run gem install bundler
  • Run bundle install
  • Install postgres to your system (and create a role with your system username)
  • Run bundle exec rake db:create
  • Run bundle exec rake db:schema:load
  • Run bundle exec rake db:create_admin
  • Run bundle exec rails s
  • Open the webpage shown in your terminal from the last command in your browser.
  • Login to the registration app http://localhost:3000 with the admin credentials you created on the previous steps.

For production you will need to see Configuration.

With RVM on ArchLinux

Install Ruby:

$ rvm install `cat .ruby-version`

Install Bundler:

$ gem install bundle
$ bundle install

Install PostgreSQL (see archlinux wiki):

$ sudo pacman -Syu
$ sudo pacman -S postgresql
$ sudo -u postgres -i
[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'
[postgres]$ logout
$ sudo systemctl start postgresql.service
$ sudo -u postgres -i
[postgres]$ createuser --interactive
[postgres]$ logout

Follow the installation:

$ bundle exec rake db:create
$ bundle exec rake db:schema:load
$ bundle exec rake db:create_admin
$ bundle exec rails s

Open the webpage shown in your terminal from the last command in your browser.

Login to the registration app http://localhost:3000/admin and input the credentials you created during the setup process.

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy