-
Notifications
You must be signed in to change notification settings - Fork 15
Setting up the development environmet
Manuel Lorenzo edited this page Oct 3, 2018
·
7 revisions
Please, follow along the instructions for yor OS (INSTALL POSTGRESQL)
Create a fork of this repo and clone it into your PC:
git clone https://github.com/your_user/ConexionFelina.git
Run bundle install
inside the 'ConexionFelina' app directory.
rails db:create
rails db:migrate
rails db:seed
If you want to migrate and populate the test database too you should add RAILS_ENV=TEST
at the end of the 2º and 3º commands and execute them.
rails s
1º) Run sudo -u postgres createuser --interactive
Use as username your OS account name
Type "y" to be superuser
2º) Run sudo -u [your OS account name] createdb conexion_felina_test
createuser -s -r postgres