bundle install
- Create a database by running
psql -d postgres -f scripts/create_database.sql
- Run the migrations in the development database using
sequel -m migrations postgres://gschool_user:password@localhost/url_shortener_development
- Run the migrations in the test database using
sequel -m migrations postgres://gschool_user:password@localhost/url_shortener_test
rerun rackup
- running rerun will reload app when file changes are detected
- Run tests using
rspec spec
.
To run the migrations on heroku, run heroku run 'sequel -m migrations $HEROKU_POSTGRESQL_TEAL_URL' --app gschool-url-shortener-staging
or heroku run 'sequel -m migrations HEROKU_POSTGRESQL_AQUA_URL' --app gschool-url-shortener-prod