[GeoNode-users] Apache Config: geonode.conf
Julierme Pinheiro
juliermeopensourcedeveloper at gmail.com
Tue Jul 17 06:56:32 PDT 2018
Dear Toni and Francesco,
Thank you very much for your reply. I apologize for my shortage of
knowledge in this topic. I am going to start a new project, focusing on
GeoNode Production (GP) being customized by inheriting changes through
GeoNode DevMode (GD). So far, I have GeoNode Production working fine,
showing thumbnails and user account emails working smoothly. Also, I have
GeoNode DevMode working fine. I can run manage.py collectstatic and see css
and templates changes through GP. Anyway, I am very happy with this
achievement. Through the new project, I may face this problem again, I hope
not. I will spend some more time reading [1] and [2] in order to get more
feedback in how the bridge between GP and GD is built.
[1]
http://docs.geonode.org/en/master/tutorials/admin/customize_lookfeel/customize/setup_admin.html
[2] http://geonode.org/dev-workshop/#/8/3
<http://geonode.org/dev-workshop/#/8/3>
I appreciated your time and help.
On Tue, Jul 17, 2018 at 6:59 AM, francesco bartoli <xbartolone at gmail.com>
wrote:
> Hi,
>
> if you read carefully the previous slide [1] it states that the workshop
> was gone to assume to install geonode from apt-get which cannot be true in
> your case cause 2.8 doesn't have a debian package.
> So eventually you should follow *only* one of the others two options: a
> systemwide python environment or a python virtualenv environment. This
> means you have to install apache and tomcat separately and deploy and
> configure geoserver and the geonode virtualhost yourself.
> In this latter case you should be aware of avoiding to call the systemwide
> python binary at all and only reference the binary one from the virtual
> environment otherwise things don't work.
>
> I suggest to start again from a fresh machine.
>
> [1] http://geonode.org/dev-workshop/#/8/2
>
> Il giorno lun 16 lug 2018 alle ore 22:24 Julierme Pinheiro <
> juliermeopensourcedeveloper at gmail.com> ha scritto:
>
>> Hi Francesco Bartolli,
>>
>> Thank you very for your reply. Regarding your questions:
>>
>> first of all what are you trying to achieve?
>>
>> I am tweaking through geonode.conf in order to have all the changes I
>> made through GeoNode Development inherited by GeoNode Production.
>>
>> 90% is done. And I have followed [1]. And I think in [2] is where I am
>> mistaking something.
>>
>> Why do you want to mix dev with production?
>>
>> I do not want to mix dev and production. But the way I am setting the
>> WSGIDaemonProcess seems to be mixing Dev and Production and I am not sure
>> about that.
>>
>> WSGIDaemonProcess geonode python-path=/home/my_geonode/
>> my_geonode:/home/geo/Envs/geonode/lib/python2.7/site-packages
>> user=www-data threads=15 processes=2
>>
>>
>> What is my problem? According to my CONFIGURATION-1 in the previous
>> email, GeoNode Production is inheriting all css and templates
>> (site_index.html and site_base.html) in GeoNode Development, but my
>> Thumbnails are not displayed and I cannot send e-mails.
>>
>> I have changed all the paths in geonode.conf, sometimes pointing to
>> directories that are in GeoNode Production folders and sometimes in GeoNode
>> Development folders. The result for these changes are many, but I never
>> get one that inherits all the css and templates, having thumbnails and
>> account e-mail working.
>>
>> [1] http://geonode.org/dev-workshop/#/
>>
>> [2] http://geonode.org/dev-workshop/#/8/3
>>
>> I appreciated your time and help.
>>
>> Kind regards,
>>
>> Julierme
>>
>>
>> On Mon, Jul 16, 2018 at 1:47 PM, francesco bartoli <xbartolone at gmail.com>
>> wrote:
>>
>>> Hi Julierme,
>>>
>>> first of all what are you trying to achieve? Why do you want to mix dev
>>> with production?
>>>
>>> Usually they have different scopes and once a particular geonode
>>> customization is ready for production then the related geonode-project can
>>> be installed and deployed into a production environment.
>>> Most of the issues you have are due to the confusion about inherited
>>> settings and python library paths from the system and a virtual environment.
>>> I'd strongly suggest to start from the developer workshop [1] and follow
>>> it step-by-step. That explains clearly how to develop a custom
>>> geonode-project and then figure out what are the steps to install and
>>> configure it on top of a systemwide installed geonode.
>>>
>>> Francesco
>>>
>>> [1] http://geonode.org/dev-workshop/#/
>>>
>>> Il giorno lun 16 lug 2018 alle ore 17:57 Julierme Pinheiro <
>>> juliermeopensourcedeveloper at gmail.com> ha scritto:
>>>
>>>> Dear GeoNode users and developers,
>>>>
>>>> Recently, I posted about two issues regarding thumbnails and e-mails
>>>> account. I am running GeoNode at 2.8.0 Devmode (GD) and Production (GP).
>>>>
>>>> In respect to GeoNode Production, I fixed these issues by adding
>>>> SITEURL and ACCOUNT and EMAIL confing to settings.py and find GP
>>>> geonode.conf bellow
>>>>
>>>> WSGIDaemonProcess geonode python-path=/home/geonode/my_
>>>> geonode:/home/geo/Envs/geonode/lib/python2.7/site-packages
>>>> user=www-data threads=15 processes=2
>>>>
>>>> <VirtualHost *:80>
>>>> ServerName 172.21.14.45
>>>> ServerAlias localhost
>>>> ServerAdmin webmaster at localhost
>>>> DocumentRoot /home/geonode/my_geonode/my_geonode
>>>>
>>>> LimitRequestFieldSize 32760
>>>> LimitRequestLine 32760
>>>>
>>>> ErrorLog /var/log/apache2/error.log
>>>> LogLevel warn
>>>> CustomLog /var/log/apache2/access.log combined
>>>>
>>>> WSGIProcessGroup geonode
>>>> WSGIPassAuthorization On
>>>> WSGIScriptAlias / /home/geonode/my_geonode/my_geonode/wsgi.py
>>>>
>>>> Alias /static/ /home/geonode/my_geonode/my_geonode/static_root/
>>>> Alias /uploaded/ /home/geonode/my_geonode/my_geonode/uploaded/
>>>>
>>>> <Directory "/home/geonode/my_geonode/my_geonode/">
>>>> <Files wsgi.py>
>>>> Order deny,allow
>>>> Allow from all
>>>> Require all granted
>>>> </Files>
>>>>
>>>> Order allow,deny
>>>> Options Indexes FollowSymLinks
>>>> Allow from all
>>>> IndexOptions FancyIndexing
>>>> </Directory>
>>>>
>>>> <Directory "/home/geonode/my_geonode/my_geonode/static_root/">
>>>>
>>>> Regarding GeoNode DevMode, I am trying to find the correct
>>>> configuration, but there is always something missing. For instance, if I
>>>> set the CONFIGURATION-1 bellow, the thumbnail is not displayed and I am
>>>> unable to send emails. In the other hand, If I set CONFIGURATION-2 bellow,
>>>> some page styles are lost, the Thumbnails are displayed and I am unable to
>>>> send e-mails.
>>>>
>>>>
>>>>
>>>> CONFIGURATION-1
>>>>
>>>> WSGIDaemonProcess geonode python-path=/home/my_geonode/
>>>> my_geonode:/home/geo/Envs/geonode/lib/python2.7/site-packages
>>>> user=www-data threads=15 processes=2
>>>>
>>>> <VirtualHost *:80>
>>>> ServerName 172.21.14.45
>>>> ServerAlias localhost
>>>> ServerAdmin webmaster at localhost
>>>> DocumentRoot /home/my_geonode/my_geonode/my_geonode
>>>>
>>>> LimitRequestFieldSize 32760
>>>> LimitRequestLine 32760
>>>>
>>>> ErrorLog /var/log/apache2/error.log
>>>> LogLevel warn
>>>> CustomLog /var/log/apache2/access.log combined
>>>>
>>>> WSGIProcessGroup geonode
>>>> WSGIPassAuthorization On
>>>> WSGIScriptAlias / /home/my_geonode/my_geonode/my_geonode/wsgi.py
>>>>
>>>> Alias /static/ /home/my_geonode/my_geonode/my_geonode/static_root/
>>>> Alias /uploaded/ /home/my_geonode/my_geonode/my_geonode/uploaded/
>>>>
>>>> <Directory "/home/my_geonode/my_geonode/my_geonode/">
>>>>
>>>> CONFIGURATION-2
>>>>
>>>> WSGIDaemonProcess geonode python-path=/home/my_geonode/
>>>> my_geonode:/home/geo/Envs/geonode/lib/python2.7/site-packages
>>>> user=www-data threads=15 processes=2
>>>>
>>>> <VirtualHost *:80>
>>>> ServerName 172.21.14.45
>>>> ServerAlias localhost
>>>> ServerAdmin webmaster at localhost
>>>> DocumentRoot /home/geonode/my_geonode/my_geonode
>>>>
>>>> LimitRequestFieldSize 32760
>>>> LimitRequestLine 32760
>>>>
>>>> ErrorLog /var/log/apache2/error.log
>>>> LogLevel warn
>>>> CustomLog /var/log/apache2/access.log combined
>>>>
>>>> WSGIProcessGroup geonode
>>>> WSGIPassAuthorization On
>>>> WSGIScriptAlias / /home/geonode/my_geonode/my_geonode/wsgi.py
>>>>
>>>> Alias /static/ /home/geonode/my_geonode/my_geonode/static_root/
>>>> Alias /uploaded/ /home/geonode/my_geonode/my_geonode/uploaded/
>>>>
>>>> <Directory "/home/geonode/my_geonode/my_geonode/">
>>>> <Files wsgi.py>
>>>> Order deny,allow
>>>> Allow from all
>>>> Require all granted
>>>> </Files>
>>>>
>>>> Order allow,deny
>>>> Options Indexes FollowSymLinks
>>>> Allow from all
>>>> IndexOptions FancyIndexing
>>>> </Directory>
>>>>
>>>> <Directory "/home/geonode/my_geonode/my_geonode/static_root/">
>>>>
>>>> I looked at documentation in here
>>>> <http://media.readthedocs.org/pdf/geonode/master/geonode.pdf>, but I
>>>> could not find information that could guide me on how to set geonode.conf
>>>> in order to join GeoNode DevMode and GeoNode Production. Could anyone give
>>>> me a hint in what I am missing for geonode.conf settings or what I am
>>>> mixing in the geonode.conf configuration?
>>>>
>>>> Thank you for your time in advance.
>>>>
>>>> I appreciated it.
>>>>
>>>> Kind regards
>>>>
>>>> Julierme
>>>>
>>>> _______________________________________________
>>>> geonode-users mailing list
>>>> geonode-users at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180717/f9e9a966/attachment-0001.html>
More information about the geonode-users
mailing list