-
Notifications
You must be signed in to change notification settings - Fork 12
Installation
Alexandre ZANNI edited this page Sep 23, 2017
·
1 revision
- Install ruby.
- In your terminal run
gem install bundle - 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:seed - Run
bundle exec rails s - Open the webpage shown in your terminal from the last command in your browser.
Install ruby:
$ rvm install 2.4.0
Install bundle:
$ gem install bundle
Install dependencies:
$ 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
Initialize db:
$ 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.