gem install mailcatcher
mailcatcher
Abra o Mailcatcher http://127.0.0.1:1080 no navegador
cp .env.example .env
vim .env
Inicia o banco de dados PostgreSQL instalado via Docker compose
docker-compose up
rails db:create db:migrate db:test:prepare
rails server
É preciso ter instalado o chromium ou google chrome para executar os testes de aceitação
rails spec
SECRET_KEY_BASE
ex: heroku config:set SECRET_KEY_BASE=$(rake secret)
RAILS_LOG_TO_STDOUT
ex: heroku config:set RAILS_LOG_TO_STDOUT=enabled
RAILS_SERVE_STATIC_FILES
ex: heroku config:set RAILS_SERVE_STATIC_FILES=enabled
FACEBOOK_APP_ID
FACEBOOK_APP_SECRET
ex: heroku config:set FACEBOOK_APP_ID=8N029N81 FACEBOOK_APP_SECRET=9s83109d3+583493190
SENDGRID_USERNAME
SENDGRID_PASSWORD
ex: heroku config:set SENDGRID_USERNAME=8N029N81 SENDGRID_PASSWORD=9s83109d3+583493190
GOOGLE_ANALYTICS_ID
ex: heroku config:set GOOGLE_ANALYTICS_ID=UA-165967323-14