#! /bin/bash
export SECRET_KEY_BASE=$(bundle exec rake secret)
export DEVISE_PEPPER=$(bundle exec rake secret)
export RAILS_SERVE_STATIC_FILES='true'
. /usr/src/app/secrets.sh

bundle exec rake db:create db:migrate
bundle exec rake assets:precompile
bundle exec rails s Puma -p 3000 -b '0.0.0.0'

#! /bin/bash
#export SECRET_KEY_BASE=$(bundle exec rake secret)
#export DEVISE_PEPPER=$(bundle exec rake secret)
export RAILS_SERVE_STATIC_FILES='true'
. /usr/src/app/secrets.sh

bundle exec rake db:create db:migrate
bundle exec rake assets:precompile
bundle exec rails s Puma -p 3000 -b '0.0.0.0'

Stop changing the secrets every time the solution is deployed, as it breaks stored encrypted passwords.
Stop changing the secrets every time the solution is deployed, as it breaks stored encrypted passwords.
