Move process commands from Procfile to manifest.yml

This commit is contained in:
Ryan Ahearn
2022-10-18 11:22:58 -04:00
parent 59732ce137
commit 8dc0b4eb19
5 changed files with 21 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ jobs:
cf_org: gsa-10x-prototyping
cf_space: 10x-notifications
push_arguments: >-
--var env=staging
--vars-file deploy-config/staging.yml
--var DANGEROUS_SALT="$DANGEROUS_SALT"
--var SECRET_KEY="$SECRET_KEY"
--var ADMIN_CLIENT_SECRET="$ADMIN_CLIENT_SECRET"

View File

@@ -1,2 +0,0 @@
web: unset GUNICORN_CMD_ARGS; exec ./scripts/run_app_paas.sh gunicorn -c /home/vcap/app/gunicorn_config.py application
worker: exec ./scripts/run_app_paas.sh celery -A run_celery.notify_celery worker --loglevel=INFO --concurrency=4 2> /dev/null

View File

@@ -0,0 +1,5 @@
env: production
web_instances: 2
web_memory: 1G
worker_instances: 1
worker_memory: 512M

View File

@@ -0,0 +1,5 @@
env: staging
web_instances: 1
web_memory: 1G
worker_instances: 1
worker_memory: 512M

View File

@@ -17,6 +17,16 @@ applications:
- notifications-api-csv-upload-bucket-((env))
- notifications-api-contact-list-bucket-((env))
processes:
- type: web
instances: ((web_instances))
memory: ((web_memory))
command: ./scripts/run_app_paas.sh gunicorn -c ./gunicorn_config.py application
- type: worker
instances: ((worker_instances))
memory: ((worker_memory))
command: ./scripts/run_app_paas.sh celery -A run_celery.notify_celery worker --loglevel=INFO --concurrency=4
env:
NOTIFY_APP_NAME: api
NOTIFY_LOG_PATH: /home/vcap/logs/app.log