Skip to content

Commit

Permalink
Disable monitoring module of GeoNode (#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalxas committed Jan 11, 2021
1 parent c926096 commit 5b8ecad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-conf/geonode/local_settings.py.sample
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,4 @@ ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', ['localhost','geonode'])
MEDIA_ROOT = "/var/www/geonode/uploaded"
STATIC_ROOT = "/var/www/geonode/static"
SESSION_EXPIRED_CONTROL_ENABLED = True
MONITORING_ENABLED = False
5 changes: 5 additions & 0 deletions bin/install_geonode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ sed -i -e "s|'SITE_HOST_PORT', 8000|'SITE_HOST_PORT', 80|" \
"$GEONODE_DIR/settings.py"
echo "Done"

# Patch monitoring to not use user_agents:
# (https://github.com/GeoNode/geonode/issues/6703#issuecomment-757387363)
sed -i -e "s/import user_agents/#import user_agents/" \
"$GEONODE_DIR/monitoring/models.py"

# make the static & upload dir
mkdir -p "$STATIC_PATH"
mkdir -p "$UPLOAD_PATH"
Expand Down

0 comments on commit 5b8ecad

Please sign in to comment.