Skip to content

Commit

Permalink
Updated run script and set debug=true
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuechner committed Mar 12, 2021
1 parent 18edebe commit 5f4fc73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DDBmeme/ddbmeme/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
9 changes: 4 additions & 5 deletions DDBmeme/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5f4fc73

Please sign in to comment.