How to install CEQANET 2.01
Building Development Environment
-
Install Ubuntu 16.04 Desktop
-
Install git - sudo apt-get install git
-
Make directory in home dir - mkdir ceqanet
-
Clone CEQANet git repo - git clone https://github.com/elehmer/ceqanet.git
-
Install virtualenv - sudo apt-get install virtualenv
-
Create virtualenv - cd ~/ceqanet; virtualenv env
-
Install pip - sudo apt-get install python-pip
-
Install postgresql-9.5 and postgis 2.2 - sudo apt-get install postgresql; sudo apt-get install postgresql-server-dev-9.5; sudo apt-get install postgresql-9.5-postgis-2.2
-
Run Makefile - cd ~/ceqanet/ceqanet; make
-
Install libgeos - sudo apt-get install libgeos-dev
-
Edit postgres pg_hba.conf - sudo vi /etc/postgresql/9.5/main/pg_hba.conf. Change (local all all) connection method to trust.
-
Add postgres ceqa role - sudo su - postgres; createuser ceqa
-
Acquire the ceqanet database
-
Create db - sudo su - postgres; createdb ceqanet -O ceqa
-
Add postgis extention to db - sudo su - postgres; psql -d ceqanet -c "CREATE EXTENSION POSTGIS"
-
load postgres dump into db - sudo su - postgres; psql -d ceqanet -f ~ceqadev/ceqanet/ceqanet-11-11-16.dmp
-
open terminal and cd to ~ceqadev/ceqanet/ceqanet
-
activate virtualenv - source ../env/bin/activate
-
run django dev server - python manage.py runserver
-
open browser and point to - http://localhost:8000