Skip to content

Commit d3fea31

Browse files
author
Jon Wayne Parrott
committed
Merge pull request GoogleCloudPlatform#23 from GoogleCloudPlatform/no-need-for-environment-variables
Removing unnecessary use of environment variables
2 parents 0801037 + 86ab926 commit d3fea31

File tree

3 files changed

+8
-24
lines changed

3 files changed

+8
-24
lines changed

6-pubsub/app.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,10 @@ vm: true
2121

2222
# [START entrypoint]
2323
# Instead of using gunicorn directly, we'll use Honcho. Honcho is a python port
24-
# of the Foreman process manager. $PROCESSES is set by app.yaml / worker.yaml
25-
# to control which processes Honcho will start.
26-
entrypoint: honcho start -f /app/procfile $PROCESSES
24+
# of the Foreman process manager. For the default module, only the
25+
# frontend process is needed.
26+
entrypoint: honcho start -f /app/procfile bookshelf
2727
# [END entrypoint]
2828

2929
runtime_config:
3030
python_version: 3
31-
32-
# [START env_variables]
33-
env_variables:
34-
# Processes is passed to Honcho via the entrypoint to run a particular set
35-
# of processes for this App Engine module. For the default module, only the
36-
# frontend process is needed.
37-
PROCESSES: bookshelf
38-
# [END env_variables]

6-pubsub/worker.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,12 @@ module: worker
2121
runtime: python
2222
vm: true
2323

24-
# [START entrypoint]
2524
# Instead of using gunicorn directly, we'll use Honcho. Honcho is a python port
26-
# of the Foreman process manager. $PROCESSES is set by app.yaml / worker.yaml
27-
# to control which processes Honcho will start.
28-
entrypoint: honcho start -f /app/procfile $PROCESSES
29-
# [END entrypoint]
25+
# of the Foreman process manager. For the worker module, both the queue worker
26+
# and the monitor process are needed.
27+
entrypoint: honcho start -f /app/procfile worker monitor
3028

3129
runtime_config:
3230
python_version: 3
31+
# [END worker]
3332

34-
# [START env_variables]
35-
env_variables:
36-
# Processes is passed to Honchovia the entrypoint to run a particular set
37-
# of processes for this App Engine module. For the worker module, both the
38-
# queue worker and the monitor process are needed.
39-
PROCESSES: worker monitor
40-
# [END env_variables]

optional-container-engine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ RUN pip install -r /app/requirements.txt
3636
ADD . /app
3737

3838
# Instead of using gunicorn directly, we'll use Honcho. Honcho is a python port
39-
# of the Foreman process manager. $PROCESSES is set by app.yaml / worker.yaml
39+
# of the Foreman process manager. $PROCESSES is set in the pod manifest
4040
# to control which processes Honcho will start.
4141
CMD honcho start -f /app/procfile $PROCESSES

0 commit comments

Comments
 (0)