Skip to content

Commit

Permalink
fixed random_mode env reading
Browse files Browse the repository at this point in the history
  • Loading branch information
Foroxon committed Apr 1, 2024
1 parent 537e6e5 commit ef91eed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion deploy/redeploy_websocket_server_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@ while [[ $# -gt 0 ]]; do
esac
done

echo "WEBSOCKET SERVER"
echo "WEBSOCKET SERVER DEV"

echo "MEMCACHED_HOST: $MEMCACHED_HOST"
echo "WEBSOCKET_PORT: $WEBSOCKET_PORT"
echo "DEBUG_LEVEL: $DEBUG_LEVEL"
echo "PING_INTERVAL: $PING_INTERVAL"
echo "ENVIRONMENT: $ENVIRONMENT"
echo "RANDOM_MODE: $RANDOM_MODE"
echo "MEMCACHE_FETCH_INTERVAL: $MEMCACHE_FETCH_INTERVAL"


# Updating the Git repo
Expand Down
2 changes: 1 addition & 1 deletion deploy/websocket_server/websocket_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
websocket_port = os.environ.get('WEBSOCKET_PORT') or 38440
ping_interval = int(os.environ.get('PING_INTERVAL', 60))
memcache_fetch_interval = int(os.environ.get('MEMCACHE_FETCH_INTERVAL', 1))
random_mode = os.environ.get('RANDOM_MODE') or False
random_mode = os.environ.get('RANDOM_MODE', 'False').lower() in ('true', '1', 't')
api_secret = os.environ.get('API_SECRET') or ''
measurement_id = os.environ.get('MEASUREMENT_ID') or ''
environment = os.environ.get('ENVIRONMENT') or 'PROD'
Expand Down

0 comments on commit ef91eed

Please sign in to comment.