2017-11-13 21:21:33 +00:00
|
|
|
run.config:
|
|
|
|
engine: python
|
|
|
|
|
|
|
|
cache_dirs:
|
|
|
|
- node_modules
|
|
|
|
|
|
|
|
extra_packages:
|
|
|
|
- nodejs
|
|
|
|
- nginx
|
|
|
|
|
|
|
|
extra_path_dirs:
|
|
|
|
- node_modules/.bin
|
|
|
|
|
|
|
|
extra_steps:
|
2017-11-15 17:38:08 +00:00
|
|
|
- pip install pipenv gunicorn
|
|
|
|
- pipenv lock -r | pip install -r /dev/stdin
|
2017-11-13 21:21:33 +00:00
|
|
|
- npm install
|
|
|
|
|
|
|
|
deploy.config:
|
|
|
|
extra_steps:
|
|
|
|
- gulp build
|
|
|
|
- python manage.py collectstatic --no-input --clear
|
|
|
|
|
|
|
|
before_live:
|
|
|
|
web.main:
|
|
|
|
- python manage.py migrate --fake-initial
|
|
|
|
|
|
|
|
web.main:
|
|
|
|
start:
|
|
|
|
nginx: nginx -c /app/etc/nginx.conf
|
|
|
|
django: gunicorn -c /app/etc/gunicorn.py babybuddy.wsgi
|
|
|
|
|
|
|
|
data.db:
|
|
|
|
image: nanobox/postgresql:9.5
|