Skip to content

Commit 9f36307

Browse files
Merge pull request #308 from camuffo/master
Changes to the cloned GN repo
2 parents dd013cd + 0d113e3 commit 9f36307

File tree

1 file changed

+67
-1
lines changed

1 file changed

+67
-1
lines changed

install/advanced/core/index.rst

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,26 @@ At this point your command prompt shows a ``(geonode)`` prefix, this indicates t
160160
pip install -e . --upgrade
161161
pip install pygdal=="`gdal-config --version`.*"
162162
163+
Edit ``/opt/geonode/celery-cmd``.
163164

164-
.. _configure_dbs_core:
165+
.. code-block:: shell
166+
167+
CELERY__STATE_DB=${CELERY__STATE_DB:-"/opt/geonode/worker@%h.state"}
168+
169+
Edit ``/opt/geonode/geonode/settings.py``.
170+
171+
.. code-block:: python
172+
173+
FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o777
174+
FILE_UPLOAD_PERMISSIONS = 0o777
175+
176+
Edit ``/opt/geonode/uwsgi.ini``.
177+
178+
.. code-block:: ini
179+
180+
chdir = /opt/geonode/
181+
182+
touch-reload = /opt/geonode/geonode/wsgi.py
165183
166184
3. Postgis database Setup
167185
^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -551,6 +569,24 @@ Let's now configure the ``JAVA_OPTS``, i.e. the parameters to run the Servlet Co
551569

552570
.. warning:: The default options we are going to add to the Servlet Container, assume you can reserve at least ``4GB`` of ``RAM`` to ``GeoServer`` (see the option ``-Xmx4096m``). You must be sure your machine has enough memory to run both ``GeoServer`` and ``GeoNode``, which in this case means at least ``4GB`` for ``GeoServer`` plus at least ``2GB`` for ``GeoNode``. A total of at least ``6GB`` of ``RAM`` available on your machine. If you don't have enough ``RAM`` available, you can lower down the values ``-Xms512m -Xmx4096m``. Consider that with less ``RAM`` available, the performances of your services will be highly impacted.
553571

572+
.. code-block:: shell
573+
574+
# Create the Logrotate config
575+
sudo tee /etc/logrotate.d/geoserver <<EOF
576+
/opt/data/geoserver_logs/geoserver.log
577+
/opt/tomcat/apache-tomcat-*/logs/*.log
578+
/opt/tomcat/apache-tomcat-*/logs/*.out
579+
/opt/tomcat/apache-tomcat-*/logs/*.txt
580+
{
581+
copytruncate
582+
daily
583+
rotate 5
584+
delaycompress
585+
missingok
586+
su tomcat tomcat
587+
}
588+
EOF
589+
554590
Conifgure the Geofence DB
555591
............................
556592
@@ -744,6 +780,21 @@ Serving {“geonode”, “geoserver”} via NGINX
744780
sudo systemctl status geonode-uwsgi.service
745781
sudo systemctl enable geonode-uwsgi.service
746782
783+
.. code-block:: shell
784+
785+
# Create the Logrotate config
786+
sudo tee /etc/logrotate.d/uwsgi-geonode <<EOF
787+
"/var/log/geonode.log" {
788+
copytruncate
789+
daily
790+
rotate 5
791+
delaycompress
792+
missingok
793+
notifempty
794+
su root root
795+
}
796+
EOF
797+
747798
.. code-block:: shell
748799
749800
# Backup the original NGINX config
@@ -1214,6 +1265,21 @@ Daemonize and configure Celery
12141265
[Install]
12151266
WantedBy=multi-user.target
12161267
1268+
.. code-block:: shell
1269+
1270+
# Create the Logrotate config
1271+
sudo tee /etc/logrotate.d/celery <<EOF
1272+
"/var/log/celery.log" {
1273+
copytruncate
1274+
daily
1275+
rotate 5
1276+
delaycompress
1277+
missingok
1278+
notifempty
1279+
su root root
1280+
}
1281+
EOF
1282+
12171283
----
12181284
12191285
**Manage Celery**

0 commit comments

Comments
 (0)