jonasrenault / atoutprises

Atoutprises Wall Viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

atoutprises

Build Status Built with

Wall viewer and leaderboard. Check out the project's documentation.

Prerequisites

Local Development

Start the dev server for local development:

docker-compose up

Run a command inside the docker container:

docker-compose run --rm web [command]

Continuous Deployment

Deployment is automated via Travis. When builds pass on the master or qa branch, Travis will deploy that branch to Heroku. Follow these steps to enable this feature.

Initialize the production server:

heroku create atoutprises-prod --remote prod && \
    heroku addons:create newrelic:wayne --app atoutprises-prod && \
    heroku addons:create heroku-postgresql:hobby-dev --app atoutprises-prod && \
    heroku config:set DJANGO_SECRET_KEY=`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="atoutprises-prod" \
        DJANGO_CONFIGURATION="Production" \
        DJANGO_SETTINGS_MODULE="atoutprises.config" \
        --app atoutprises-prod

Initialize the qa server:

heroku create atoutprises-qa --remote qa && \
    heroku addons:create newrelic:wayne --app atoutprises-qa && \
    heroku addons:create heroku-postgresql:hobby-dev --app atoutprises-qa && \
    heroku config:set DJANGO_SECRET_KEY=`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="atoutprises-qa" \
        DJANGO_CONFIGURATION="Production" \
        DJANGO_SETTINGS_MODULE="atoutprises.config" \
        --app atoutprises-qa

Securely add your Heroku credentials to Travis so that 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 -a -m "ci(travis): add Heroku credentials" && \
git push origin master:qa && \
git push origin master

You're now ready to continuously ship! 💅 🛳

About

Atoutprises Wall Viewer


Languages

Language:Python 42.1%Language:TypeScript 41.3%Language:HTML 10.8%Language:CSS 3.5%Language:JavaScript 1.8%Language:Dockerfile 0.5%