piedpiper-web

Build Status Built with

Its all about a Weissman score > 5.0. Check out the project's documentation.

Prerequisites

Initialize the project

Start the dev server for local development:

docker-compose up

Create a superuser to login to the admin:

docker-compose run --rm web ./manage.py createsuperuser

Continuous Deployment

Deployment automated via Travis. When builds pass on the master or qa branch, Travis will deploy that branch to Heroku. Enable this by:

Creating the production sever:

heroku create piedpiper-prod --remote prod && \
    heroku addons:create newrelic:wayne --app piedpiper-prod && \
    heroku addons:create heroku-postgresql:hobby-dev --app piedpiper-prod && \
    heroku config:set DJANGO_SECRET=`openssl rand -base64 32` \
        DJANGO_AWS_ACCESS_KEY_ID="Add your id" \
        DJANGO_AWS_SECRET_ACCESS_KEY="Add your key" \
        DJANGO_AWS_STORAGE_BUCKET_NAME="piedpiper-prod" \
        --app piedpiper-prod

Creating the qa sever:

heroku create `piedpiper-qa --remote qa && \
    heroku addons:create newrelic:wayne && \
    heroku addons:create heroku-postgresql:hobby-dev && \
    heroku config:set DJANGO_SECRET=`openssl rand -base64 32` \
        DJANGO_AWS_ACCESS_KEY_ID="Add your id" \
        DJANGO_AWS_SECRET_ACCESS_KEY="Add your key" \
        DJANGO_AWS_STORAGE_BUCKET_NAME="piedpiper-qa" \

Securely add your heroku credentials to travis so it can automatically deploy your changes.

travis encrypt HEROKU_AUTH_TOKEN="$(heroku auth:token)" --add

Commit your changes and push to master and qa to trigger your first deploys:

git commit -m "ci(travis): added heroku credentials" && \
git push origin master && \
git checkout -b qa && \
git push -u origin qa

You're ready to continuously ship! ✨ 💅 🛳