[GeoNode-devel] Custom geonode project installation
Toni Schönbuchner
toni.schoenbuchner at csgis.de
Fri Jan 4 02:17:19 PST 2019
Hi Dimitris,
great to hear! For understanding
If there is no file within your project structure which overwrites the core your core
changes should apply. Can you confirm this?
Cheers,
Toni
-----------------------------------------------
CSGIS
-----------------------------------------------
Kolonnadenstraße 1
04109 Leipzig
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel +49/ (0) 341 24 04 738
Fax +49/ (0) 341 24 04 73
Web http://csgis.de
-----------------------------------------------
Hinweis gemäß § 33 BDSG
Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den
Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich
erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht
von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung,
Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
> Am 04.01.2019 um 09:29 schrieb Dimitris Kar <dkarakostis at gmail.com>:
>
> Hello Toni,
>
> Thanks for the answer. After reinstalling everything in a fresh VM, everything runs fine. I also made some tests editing the templates and creating a contrib app and everything seems to be working. I am aware that when using the geonode-project, its not recommended to edit/change the geonode core but I was curious to try that. For some reason though when I do minor changes on templates (/Envs/geonode/src/geonode), they are not applied. Are you aware if this is the expected behavior?
>
> Also I have checked your video on vimeo (https://vimeo.com/278003647#t=37m37s <https://vimeo.com/278003647#t=37m37s>). Great documentation!
>
> On Wed, Jan 2, 2019 at 6:43 PM Toni Schönbuchner <toni.schoenbuchner at csgis.de <mailto:toni.schoenbuchner at csgis.de>> wrote:
> Hi Dimitris,
>
> let me recap:
>
>> IOError: [Errno 13] Permission denied: '/usr/local/share/GeoIP'
>
> This was solved by settings permissions of /usr/local/share
>
>> And then when I run the paver sync or the paver start (as in the instructions), I get:
>> "...
>> django.db.utils.OperationalError: could not connect to server: Connection refused
>> Is the server running on host "localhost" (127.0.0.1) and accepting
>> TCP/IP connections on port 5432?
>
> Note, with dev setup there is neither tomcat nor postgresql involved.
> GeoServer is run by use of Jetty. Instead of Postgresql Setup we´re using
> Sqlite.
>
> So the error is here:
> DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings
> You´re using local_settings which expects a running postgresql server.
> https://github.com/GeoNode/geonode-project/blob/master/project_name/local_settings.py.sample#L88 <https://github.com/GeoNode/geonode-project/blob/master/project_name/local_settings.py.sample#L88>
>
> Try:
> DJANGO_SETTINGS_MODULE=wfp_geonode.settings
> (settings instead of local_settings) instead.
>
>> I am running the installation in a virtual environment inside a vagrant VM (ubuntu/xenial64). I thought it could be related with the port forwarding but that seems to be configured ok in the vagrantfile:
>>
>> config.vm.network :forwarded_port, guest: 5432, host: 5432
>
> This is totally fine. It would only matter when running in production.
> (Sqlite should not care about the port, in production I would further close 5432 and
> only connect by local_tunnel to postgres)
>
>
>> I also tried to check the configuration in the pg_config file but I can not find out where my postgres is installed. I run: which psql but there is no output.
>
> Also only relevant with production setup. ;)
>
>> On a different note, the installation comes with jetty server right?
>
> See above.
>
>
> As summary. You can use the dev setup with with django-dev-server, jetty and sqlite to quickly
> setup a environment for development. Going to production is much more complex as the different
> parts have to be configured. ( The docs explain how (a bit outdated but working.) I´ve created a little
> ansible playbook which automates those steps: https://github.com/csgis/geonode_ansible <https://github.com/csgis/geonode_ansible> )
>
> Hope this helps,
>
> Toni
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190104/141917d4/attachment-0001.html>
More information about the geonode-devel
mailing list