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
|
2017-11-29 19:05:09 +00:00
|
|
|
- pipenv install --system --deploy
|
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
|