Skip to content

Commit

Permalink
alternative method to switch to debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Lachish committed Feb 11, 2019
1 parent cf7c38a commit 85f9598
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions bin/docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ help() {
echo ""
echo "shell -- open shell"
echo "dev_server -- start Flask development server with debugger and auto reload"
echo "debug_server -- start Flask development server with remote debugger via ptvsd"
echo "debug -- start Flask development server with remote debugger via ptvsd"
echo "create_db -- create database tables"
echo "manage -- CLI to manage redash"
echo "tests -- run tests"
Expand Down Expand Up @@ -73,10 +73,10 @@ case "$1" in
export FLASK_DEBUG=1
exec /app/manage.py runserver --debugger --reload -h 0.0.0.0
;;
debug_server)
debug)
export FLASK_DEBUG=1
export REMOTE_DEBUG=1
exec /app/manage.py runserver -h 0.0.0.0
exec /app/manage.py runserver --debugger --no-reload -h 0.0.0.0
;;
shell)
exec /app/manage.py shell
Expand Down
9 changes: 0 additions & 9 deletions docker-compose.debug.yml

This file was deleted.

1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
- redis
ports:
- "5000:5000"
- "5678:5678"
volumes:
- ".:/app"
environment:
Expand Down

0 comments on commit 85f9598

Please sign in to comment.