rake db:create
rake db:migrate
rake db:test:prepare
rails s
Run can run all the tests in the suite with:
rakeor run just the ingtegration tests with:
rspec spec/integrationor a single test:
rspec spec/integration/application_spec.rbset t to desired TeacherRecommendation
t.email="desired_email"
t.update_attribute('email',t.email)Production:
heroku config:set REGISTRATION_OPEN='true' --app pgsapplication
heroku config:set REGISTRATION_OPEN='false' --app pgsapplicationStaging:
heroku config:set REGISTRATION_OPEN='true' --app application-staging
heroku config:set REGISTRATION_OPEN='false' --app application-stagingDevelopment:
export REGISTRATION_OPEN='true'
export REGISTRATION_OPEN='false'Find Database Name
heroku addons --app application-staging | grep POSTGRESDrop Database
heroku pg:reset HEROKU_POSTGRESQL_ORANGE --confirm application-stagingMigrate
heroku run rake db:migrate --app application-stagingSeed
heroku run rake db:seed --app application-stagingPopulate w/ fake data
heroku run rake db:populate --app application-stagingupdate ruby on heroku