Run the tests
There's a sample test in
lumbergh/base/tests.py for your convenience, that
you can run using the following command:
python manage.py test
pip install tox tox
.travis.yml file will also run coveralls by
If you want to benefit from Travis and Coveralls, you will need to activate them both for your project.
Oh, and you might want to change the "Build Status" and "Coverage Status" links at the top of this file to point to your own travis and coveralls accounts.
Docker for development
Sync With Greehouse
If you want to populate your local instance with jobs you will need to connect to your web container and run a sync command:
docker-compose run web ./manage.py sync_greenhouse
Docker for deploying to production
Prepare a 'env' file with all the variables needed by dev, stage or production.
Run the image:
docker run --env-file env -p 80:8000 mozmar/lumbergh
- heroku create
- heroku config:set DEBUG=False ALLOWED_HOSTS=.herokuapp.com, SECRET_KEY=something_secret DATABASE_URL gets populated by heroku once you setup a database.
- git push heroku master
A newrelic.ini file is already included. To enable NewRelic monitoring add two enviroment variables: