-
Notifications
You must be signed in to change notification settings - Fork 29
Development Installation
Robert Clark edited this page Feb 17, 2020
·
4 revisions
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.
Install the old Ruby 2.3.5 with openssl support (see stackoverflow and archlinux wiki):
$ rvm pkg install openssl
$ rvm install 2.3.5 --with-openssl-dir=$HOME/.rvm/usr
Install bundle:
$ gem install bundle
$ bundle install
Now 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:seed
$ 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
as email: [email protected]
, password: ChangeMe123
or email: [email protected]
, password: Test123456
and change the password.