Skip to content

jmabry111/aet_application

Repository files navigation

General

AET Staging AET Production

Set up

rake db:create
rake db:migrate
rake db:test:prepare

rails s

Running Tests

Run can run all the tests in the suite with:

rake

or run just the ingtegration tests with:

rspec spec/integration

or a single test:

rspec spec/integration/application_spec.rb

Update single attribute from console..

set t to desired TeacherRecommendation
t.email="desired_email"
t.update_attribute('email',t.email)

Open and close system for submitting applications

Production:

heroku config:set REGISTRATION_OPEN='true' --app aet-application
heroku config:set REGISTRATION_OPEN='false' --app aet-application

Staging:

heroku config:set REGISTRATION_OPEN='true' --app aet-staging
heroku config:set REGISTRATION_OPEN='false' --app aet-staging

Development: This needs to be done in the terminal session that will run the rails server.

export REGISTRATION_OPEN='true'
export REGISTRATION_OPEN='false'

Set teacher recommendation due date

Production:

heroku config:set DUE_DATE="February 23, 2021" --app aet-application

Staging:

heroku config:set DUE_DATE="February 23, 2021" --app aet-staging

Development: This needs to be done in the terminal session that will run the rails server.

export DUE_DATE="February 23, 2021"

Drop staging database

Find Database Name

heroku addons --app aet-staging | grep POSTGRES

Drop Database

heroku pg:reset HEROKU_POSTGRESQL_PINK --confirm aet-staging

Migrate

heroku run rake db:migrate --app aet-staging

Seed

heroku run rake db:seed --app aet-staging

Populate w/ fake data

heroku run rake db:populate --app aet-staging

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published