Modified:
| Before: Setup Dev Environment@55590196cb9b | After: Setup Dev Environment@c975fffc72d5 | ||||
|---|---|---|---|---|---|
| n | 1 | ## Setup Dev Environment (Ubuntu) | n | 1 | ## Setup Dev Environment |
| 2 | |||||
| 3 | ## [Ubuntu][ubuntu] | ||||
| 2 | 4 | ||||
| 4 | 6 | ||||
| n | n | 7 | ------------------------------------------------------------------------------------- | ||
| 5 | $ mkdir WORKSPACE | 8 | $ mkdir WORKSPACE | ||
| 6 | $ cd WORKSPACE | 9 | $ cd WORKSPACE | ||
| n | n | 10 | ------------------------------------------------------------------------------------- | ||
| 7 | 11 | ||||
| 9 | 13 | ||||
| n | n | 14 | ------------------------------------------------------------------------------------- | ||
| 10 | $ sudo apt-get install mercurial | 15 | $ sudo apt-get install mercurial | ||
| n | n | 16 | ------------------------------------------------------------------------------------- | ||
| 11 | 17 | ||||
| 13 | 19 | ||||
| n | n | 20 | ------------------------------------------------------------------------------------- | ||
| 14 | $ hg clone http://bitbucket.org/candiwi/candiwi/ | 21 | $ hg clone http://bitbucket.org/candiwi/candiwi/ | ||
| n | n | 22 | ------------------------------------------------------------------------------------- | ||
| 15 | 23 | ||||
| 17 | 25 | ||||
| n | n | 26 | ------------------------------------------------------------------------------------- | ||
| 18 | $ cd candiwi | 27 | $ cd candiwi | ||
| 19 | $ sudo setup_dev_environment.sh | 28 | $ sudo setup_dev_environment.sh | ||
| n | n | 29 | ------------------------------------------------------------------------------------- | ||
| 20 | 30 | ||||
| 29 | 39 | ||||
| n | n | 40 | ------------------------------------------------------------------------------------- | ||
| 30 | $ ./manage.py runserver | 41 | $ ./manage.py runserver | ||
| n | n | 42 | ------------------------------------------------------------------------------------- | ||
| 31 | 43 | ||||
| t | t | 44 | ## [Arch Linux][arch] | ||
| 45 | |||||
| 46 | First create an empty folder. | ||||
| 47 | |||||
| 48 | ------------------------------------------------------------------------------------- | ||||
| 49 | $ mkdir WORKSPACE | ||||
| 50 | $ cd WORKSPACE | ||||
| 51 | ------------------------------------------------------------------------------------- | ||||
| 52 | |||||
| 53 | Download 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 | |||||
| 60 | Running 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 | |||||
| 68 | Fix 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 | |||||