Get the code.
git clone [email protected]:drapergeek/campmaster.git
Set up the project's dependencies.
cd project
rake dev:setup
This will automatically add a heroku remote for staging and production.
Running tests:
rake
Use Foreman to run the app locally.
foreman start
It uses your .env
file and Procfile
to run processes just like Heroku's
Cedar stack.
Anytime any development data is needed, add it to the dev:prime tasks. At any point you can reset your local development data with:
rake dev:prime
After code is commited to the master branch, it is automatically deployed to heroku if all the tests pass. You can also manually deploy:
git push staging
Run migrations (if necessary).
heroku run rake db:migrate --app campmaster-staging
heroku restart --app campmaster-staging