You can use Dead Crumbs to generate a secret, which is then split across multiple keys. These keys can later be re-assembled to the secret.
- Install ruby 2.5.3
- Install Node via NVM and run
nvm use
to use the projects Node version - Install yarn
- Setup a redis server
sudo apt-get install redis-server
- Install bundler
gem install bundler
- Run
bundle exec bin/setup
- Run server
bundle exec bin/rails s
and go to http://dead_crumbs.vcap.me:3000/
git push heroku
heroku run rails db:migrate
Before the first deploy you need to set the secrets required in config/secrets.yml
:
heroku config:set SECRET_KEY_BASE=some_secret
- Install
chromedriver
and add it to path variables - Run unit tests with
bundle exec rspec
- Run integration tests with
bundle exec cucumber
Debugging hint: You can disable headless mode for javascript tests with CHROME_HEADLESS=false bundle exec cucumber
.