Login
Difference between parent 55590196cb9b and child c975fffc72d5
Modified:

Before: Setup Dev Environment@55590196cb9b
After: Setup Dev Environment@c975fffc72d5
n1## Setup Dev Environment (Ubuntu)n1## Setup Dev Environment
2
3## [Ubuntu][ubuntu]
24
46
n n7 -------------------------------------------------------------------------------------
5 $ mkdir WORKSPACE8 $ mkdir WORKSPACE
6 $ cd WORKSPACE9 $ cd WORKSPACE
n n10 -------------------------------------------------------------------------------------
711
913
n n14 -------------------------------------------------------------------------------------
10 $ sudo apt-get install mercurial15 $ sudo apt-get install mercurial
n n16 -------------------------------------------------------------------------------------
1117
1319
n n20 -------------------------------------------------------------------------------------
14 $ hg clone http://bitbucket.org/candiwi/candiwi/21 $ hg clone http://bitbucket.org/candiwi/candiwi/
n n22 -------------------------------------------------------------------------------------
1523
1725
n n26 -------------------------------------------------------------------------------------
18 $ cd candiwi27 $ cd candiwi
19 $ sudo setup_dev_environment.sh 28 $ sudo setup_dev_environment.sh
n n29 -------------------------------------------------------------------------------------
2030
2939
n n40 -------------------------------------------------------------------------------------
30 $ ./manage.py runserver41 $ ./manage.py runserver
n n42 -------------------------------------------------------------------------------------
3143
t t44## [Arch Linux][arch]
45
46First create an empty folder.
47
48 -------------------------------------------------------------------------------------
49 $ mkdir WORKSPACE
50 $ cd WORKSPACE
51 -------------------------------------------------------------------------------------
52
53Download setup script and make it executable.
54
55 -------------------------------------------------------------------------------------
56 $ wget http://bitbucket.org/candiwi/candiwi/raw/tip/setup_arch_dev_env.sh
57 $ chmod +x setup_arch_dev_env.sh
58 -------------------------------------------------------------------------------------
59
60Running the setup script with root permissions does the following:
61
62 - Installs all dependencies
63 - Makes a clones of the candiwi codebase in "WORKSPACE/candiwi"
64 - Creates the main repository in "WORKSPACE/candiwi_main/"
65 - Creates "WORKSPACE/candiwi_props/" where the proposals are saved.
66 - Creates a sqlite database for development "WORKSPACE/sqlite.db"
67
68Fix permissions so you do not need to be root.
69
70 -------------------------------------------------------------------------------------
71 $ chown -R USER *
72 -------------------------------------------------------------------------------------
73
74
75
76
77[arch]: http://www.archlinux.org/
78[ubuntu]: http://www.ubuntu.com/
79