diff --git a/DDBmeme/ddbmeme/settings.py b/DDBmeme/ddbmeme/settings.py index 37257e5..f4c6330 100755 --- a/DDBmeme/ddbmeme/settings.py +++ b/DDBmeme/ddbmeme/settings.py @@ -10,7 +10,7 @@ SECRET_KEY = os.environ.get('SECRET_KEY', 'abcdefghijklmnopqrstuvwxyz1234567890') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True USE_X_FORWARDED_HOST = os.environ.get('USE_X_FORWARDED_HOST', '0') SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') diff --git a/DDBmeme/run.sh b/DDBmeme/run.sh index 96aaecd..d646c25 100755 --- a/DDBmeme/run.sh +++ b/DDBmeme/run.sh @@ -24,10 +24,9 @@ while true; do PROCESS_1_STATUS=$? pgrep -f DDBmeme PROCESS_2_STATUS=$? - echo $PROCESS_1_STATUS + ":" + $PROCESS_2_STATUS - #if [ $PROCESS_1_STATUS -ne 0 ] || [ $PROCESS_2_STATUS -ne 0 ]; then - # echo "One of the processes has already exited." - # exit 1 - #fi + if [ $PROCESS_1_STATUS -ne 0 ] || [ $PROCESS_2_STATUS -ne 0 ]; then + echo "One of the processes has already exited." + exit 1 + fi sleep 60 done