This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from iferguson90/master
Testing environment variables
- Loading branch information
Showing
6 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
rabbit: RABBITMQ_LOG_BASE=$PWD/$RABBITMQ_LOG_BASE RABBITMQ_MNESIA_BASE=$PWD/$RABBITMQ_MNESIA_BASE rabbitmq-server | ||
redis: redis-server --port $REDIS_PORT | ||
web: python tests/scripts/web_wrapper.py | ||
worker: coverage run $(which celery) worker -n shell_worker.%h.$PORT --pool=eventlet --concurrency 1 -A ptero_shell_command_fork.implementation.celery_app | ||
rabbit: RABBITMQ_LOG_BASE=$PWD/$PTERO_FORK_RABBITMQ_LOG_BASE RABBITMQ_MNESIA_BASE=$PWD/$PTERO_FORK_RABBITMQ_MNESIA_BASE RABBITMQ_NODENAME=$PTERO_FORK_RABBITMQ_NODENAME RABBITMQ_NODE_PORT=$PTERO_FORK_RABBITMQ_NODE_PORT rabbitmq-server | ||
redis: redis-server --port $PTERO_FORK_REDIS_PORT | ||
web: CELERY_BROKER_URL=$PTERO_FORK_CELERY_BROKER_URL CELERY_RESULT_BACKEND=$PTERO_FORK_CELERY_RESULT_BACKEND python tests/scripts/web_wrapper.py | ||
worker: CELERY_BROKER_URL=$PTERO_FORK_CELERY_BROKER_URL CELERY_RESULT_BACKEND=$PTERO_FORK_CELERY_RESULT_BACKEND coverage run $(which celery) worker -n shell_worker.%h.$PORT --pool=eventlet --concurrency 1 -A ptero_shell_command_fork.implementation.celery_app |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from ptero_shell_command_fork.api.wsgi import app | ||
import os | ||
|
||
port = int(os.environ.get('PTERO_FORK_PORT', '5200')) | ||
host = os.environ.get('PTERO_FORK_HOST', 'localhost') | ||
port = int(os.environ['PTERO_FORK_PORT']) | ||
host = os.environ['PTERO_FORK_HOST'] | ||
|
||
|
||
app.run(host=host, port=port, debug=False, use_reloader=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters