Skip to content

Commit

Permalink
update geonode-updateip to use the new flags
Browse files Browse the repository at this point in the history
  • Loading branch information
simod committed Aug 28, 2018
1 parent 0bb67af commit fbef452
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions docs/tutorials/admin/install/custom_install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,11 @@ Once edited (if necessary) run the ``./install.sh`` file with the following comm
# call geonode binary django-admin.py create django super user
$ geonode createsuperuser

# create the IP address to your address
$ sudo geonode-updateip youraddress
# create the IP address to your public address
$ sudo geonode-updateip -p yourpublicaddress

# if geoserver and geonode are not on the same machine then also add the local geonode address
$ sudo geonode-updateip -p yourpublicaddress -l yourlocaladdress


GeoNode can now be accessed at http://localhost
10 changes: 7 additions & 3 deletions docs/tutorials/install_and_admin/quick_install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ The steps to install geonode and all dependencies in Ubuntu 16.04 are as follows

.. note:: If you want to run geonode on your local instance, just run::

sudo geonode-updateip localhost
sudo geonode-updateip -p localhost

IP_ADDRESS=$(ip route get 8.8.8.8 | awk '{print $NF; exit}')
sudo geonode-updateip $IP_ADDRESS
sudo geonode-updateip -p $IP_ADDRESS

.. note:: If geoserver and geonode are not on the same machine then add your local geonode address::

sudo geonode-updateip -p $IP_ADDRESS -l yourlocaladdress

NB: The IP address must be set to enable access from another machine, e.g. the host machine if geonode is installed in a virtual machine.

Expand Down Expand Up @@ -102,7 +106,7 @@ This option installs geonode in a virtual environment. This option is very usefu

sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update
sudo apt-get install gdal-bin

# install the correct PyGDAL version
gdal-config --version | cut -c 1-5 | xargs -I % pip install 'pygdal>=%.0,<=%.999'

Expand Down
2 changes: 1 addition & 1 deletion package/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function setup_apache_once() {
$APACHE_SERVICE restart
sleep 15

$GEONODE_BIN/geonode-updateip localhost
$GEONODE_BIN/geonode-updateip -p localhost

$TOMCAT_SERVICE restart
sleep 30
Expand Down

0 comments on commit fbef452

Please sign in to comment.