bundle install
bundle exec rake db:setup
bundle exec rake db:seed
bundle exec rails server
and visit http://localhost:3000 in your browserdev@lacocina.localhost
, password: lacocina
)bundle exec rake db:setup
psql postgres
)lacocina
role that can create databases or run the following:
# connect to PostgreSQL server
psql postgres
CREATE ROLE lacocina; ALTER ROLE lacocina with CREATEDB LOGIN;
\q
### Development Workflow
We use Heroku for hosting all our staging and production apps. We have integrations with GitHub and use Heroku Pipelines to automatically create Review Apps when someone open up a PR.
#### Staging
You can reach staging at http://lacocina-staging.herokuapp.com
#### Production
You can reach production at http://lacocina-prod.herokuapp.com
### SSL
Production app uses Heroku SSL and is set up with custom SSL certs from Let's Encrypt. Let's Encrypt certs are valid for 30 days, but they are set-up to auto-renew using https://github.com/dmathieu/sabayon app to generate and renew certs.