[GeoNode-users] updateip command
Toni Schönbuchner
toni.schoenbuchner at csgis.de
Thu Nov 22 07:59:22 PST 2018
Hi Handy,
in addition, geonode-updateip will care about different replacements
like adding the new IP to allowed_hosts. Have a look at it´s comments
to get a filling what´s happening behind the scenes.
https://github.com/GeoNode/geonode/blob/master/package/support/geonode.updateip
In case all you need is updateing all URLs within your DB (Layers, mgplayers,etc)
something like this should do it:
https://gist.github.com/t-book/14bc849ad9567ca28a24c122d52ff77d
you would use it like:
$ chmod +x fix_urls.sh
# ./fix_urls.sh search_string replace_string
$ ./fix_urls.sh http://example.com http://newdomain.com
Cheers,
Toni
> Am 22.11.2018 um 16:49 schrieb geonode-users-request at lists.osgeo.org:
>
> Message: 1
> Date: Thu, 22 Nov 2018 21:07:34 +0700
> From: Handy Rusydi <handy at galerigis.com <mailto:handy at galerigis.com>>
> To: Julierme Pinheiro <juliermeopensourcedeveloper at gmail.com <mailto:juliermeopensourcedeveloper at gmail.com>>
> Cc: geonode-users <geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>>
> Subject: Re: [GeoNode-users] updateip command
> Message-ID:
> <CA+USV3t4nOK_24V5U0KjAtMdOvELeOjXdcwni53gkPO6QH97XA at mail.gmail.com <mailto:CA+USV3t4nOK_24V5U0KjAtMdOvELeOjXdcwni53gkPO6QH97XA at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
>
> I see. thanks for the confirmation. there are a lot of url that need to
> change. In quick installation have simple way to change the url
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181122/2329ba66/attachment.html>
More information about the geonode-users
mailing list