forked from zookeepr/zookeepr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNEW_INSTALL
40 lines (25 loc) · 1.07 KB
/
NEW_INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Zookeepr Installation Instructions
==================================
External dependencies
---------------------
* postgresql
Creating a development environment
----------------------------------
1. Create a postgresql database for your ZooKeepr instance.
2. Create a virtualenv for your ZooKeepr instance.
\# using only virtualenv
virtualenv env --no-site-packages
. ./env/bin/activate
\# using virtualenwrapper
mkvirtualenv zookeepr # --no-site-packages is default
workon zookeepr
3. Configure.
cp zkpylons/config/lca_info.py.sample zkpylons/config/lca_info.py
cp development.ini.sample development.ini
python setup.py develop
Edit development.ini to set sqlachemy.url to match your postgresql database.
Note: You must set sqlachemy.url in both the [app:main] and [alembic] sections
4. Populate database. Run alembic to create and populate the initial database.
alembic --config development.ini upgrade head
5. Run development server.
pserve --reload development.ini