On Tue, Nov 2, 2010 at 11:15 PM, Ole Nielsen <[email protected]>wrote:
> > > On Wed, Nov 3, 2010 at 8:45 AM, Ariel Nunez <[email protected]>wrote: > >> > All steps I took were scripted and hence reproducible, so I can't see >> how I >> > could experience the above problem. I was surprised, though, that there >> was >> > no file called .git/FETCH_HEAD and hence no permissions to change. >> >> Can you share your script with us so I can try to debug it further? >> > > Of course - thank you so much. Here it is (currently within some work we > did with geoserver): > > http://www.aifdr.org/projects/riat/browser/source/trunk/geoserver_api/install_geoserver/install_geonode.py > > Steps after activation of virtual env are still manual because I don't know > how to build them in. > Because of the way virtualenv works, you need to activate and then run commands in the same shell. I'm not sure this is possible from Python. However, you can wrap up "activate the venv and then run this command" in a function; I put an example on https://gist.github.com/661089 . The example also sets DJANGO_SETTINGS_MODULE to ease usage of django-admin.py. > Many thanks > Ole > > > >> That's 7 times more than what I have here in Colombia. >> > > Wow > > > Will try your suggested steps. > > Thanks > Ole > > > > I tested the following instructions earlier today on a fresh Ubuntu >> 10.04 machine: >> >> sudo add-apt-repository "deb http://archive.canonical.com/ lucid >> partner" >> sudo apt-get update >> sudo apt-get install subversion git-core binutils build-essential >> python-dev python-setuptools python-imaging python-reportlab gdal-bin >> libproj-dev libgeos-dev unzip sun-java6-jdk maven2 >> >> git clone git://github.com/GeoNode/geonode.git >> >> # next line is needed because there is a bug in a PyPi package >> sudo apt-get install python-urlgrabber >> >> cd geonode >> git submodule update --init >> python bootstrap.py >> source bin/activate >> paver build >> django-admin.py createsuperuser --settings=geonode.settings >> >> vim shared/dev-paste.ini >> %s/127.0.0.1/0.0.0.0/g >> http://cl.ly/5d65c02f9d4c980aea57 >> >> vim src/geoserver-geonode-ext/jetty.xml >> %s/localhost/0.0.0.0/g >> http://cl.ly/535c4b619a407b814825 >> >> vim src/GeoNode/geonode/local_settings.py >> SITEURL = "http://YOURIP:8000/" >> GEOSERVER_BASE_URL = "http://YOURIP:8001/geoserver/" >> GEONETWORK_BASE_URL = "http://YOURIP/geonetwork/" >> >> paver host >> >> # then navigate to: >> http://YOURIP:8000 >> > >
