Created
July 24, 2017 17:06
-
-
Save radxene/b2d979076931ae633c1cdae4a86b0285 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROJECT=start | |
rbenv gemset init $PROJECT | |
rbenv gemset active | |
gem install rails | |
rails new $PROJECT -d postgresql | |
# config/database.yml | |
bundle install | |
sudo vim /var/lib/pgsql/9.5/data/pg_hba.conf | |
# local all postgres peer | |
# local all all md5 | |
# ... | |
sudo service postgresql-9.5 restart | |
sudo su postgres | |
psql | |
# create user admin with createdb password 'admin'; | |
exit | |
exit | |
rake db:create:all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment