mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 23:32:27 -05:00
Move process commands from Procfile to manifest.yml
This commit is contained in:
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@@ -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"
|
||||
|
||||
2
Procfile
2
Procfile
@@ -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
|
||||
5
deploy-config/production.yml
Normal file
5
deploy-config/production.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
env: production
|
||||
web_instances: 2
|
||||
web_memory: 1G
|
||||
worker_instances: 1
|
||||
worker_memory: 512M
|
||||
5
deploy-config/staging.yml
Normal file
5
deploy-config/staging.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
env: staging
|
||||
web_instances: 1
|
||||
web_memory: 1G
|
||||
worker_instances: 1
|
||||
worker_memory: 512M
|
||||
10
manifest.yml
10
manifest.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user