Updated Dev Setup: Linux (markdown)

Nick Winter 2015-02-03 22:10:34 -08:00
parent 33db5c5b85
commit b153730caf

@ -11,11 +11,10 @@
On Linux, you'll need _make_, _build-essential_, _ruby_, _curl_ and _git_ installed (`sudo apt-get install make build-essential ruby curl git`).
1. [Create a GitHub account](https://github.com/join) if you don't already have one.
2. [Set up Git on your computer](https://help.github.com/articles/set-up-git/) to allow your computer to speak to GitHub.
3. (Optional) [Fork](https://github.com/codecombat/codecombat/fork) our CodeCombat repository if you wish to make changes.
4. Make sure - *Message lost, if anyone knows the warning that was placed here, please re-add.*
5. Open a terminal and navigate to the folder you wish to install CodeCombat under.
6. * If you've forked the repository, paste in the following command (*Replace "your_repository_url" with your repository*):
1. [Set up Git on your computer](https://help.github.com/articles/set-up-git/) to allow your computer to speak to GitHub.
1. (Optional) [Fork](https://github.com/codecombat/codecombat/fork) our CodeCombat repository if you wish to make changes.
1. Open a terminal and navigate to the folder you wish to install CodeCombat under.
1. * If you've forked the repository, paste in the following command (*Replace "your_repository_url" with your repository*):
```bash
curl https://raw.githubusercontent.com/codecombat/codecombat/master/scripts/devSetup/bootstrap.sh | bash -s your_repository_url
@ -25,14 +24,14 @@ On Linux, you'll need _make_, _build-essential_, _ruby_, _curl_ and _git_ instal
curl https://raw.githubusercontent.com/codecombat/codecombat/master/scripts/devSetup/bootstrap.sh | bash
```
NOTE: The repository will be in the coco subdirectory. You should not run a separate git clone, as that is taken care of.
7. Ensure you have Python 2 installed with `sudo apt-get install python2`, or your distributional equivalent. Python 3.1 is also supported, but 3.2+ are not tested. If that is not working, it is also possible to install it directly from the Ubuntu software center.
8. Follow the on-screen prompts. The program will download and install all necessary dependencies. If nothing seems to be happening, try running `sudo python ./coco/scripts/devSetup/setup.py` or join the [HipChat room](https://www.hipchat.com/g3plnOKqa) to fix things.
9. Run the following commands in separate windows (these are python scripts, so make sure you have a python IDE installed):
1. Ensure you have Python 2 installed with `sudo apt-get install python2`, or your distributional equivalent. Python 3.1 is also supported, but 3.2+ are not tested. If that is not working, it is also possible to install it directly from the Ubuntu software center.
1. Follow the on-screen prompts. The program will download and install all necessary dependencies. If nothing seems to be happening, try running `sudo python ./coco/scripts/devSetup/setup.py` or join the [HipChat room](https://www.hipchat.com/g3plnOKqa) to fix things.
1. Run the following commands in separate windows (these are python scripts, so make sure you have a python IDE installed):
* `./coco/bin/coco-mongodb` - Starts MongoDB
* `sudo ./coco/bin/coco-brunch` - Starts brunch, which watches for file changes
* `./coco/bin/coco-dev-server` - Starts your local web server
10. Setup [MongoDB](#installing-the-database).
11. Visit [http://localhost:3000](http://localhost:3000) to see your CodeCombat development environment!
1. Setup [MongoDB](#installing-the-database).
1. Visit [http://localhost:3000](http://localhost:3000) to see your CodeCombat development environment!
If you get errors with bower not being able to clone git repositories, try [cloning over https](http://stackoverflow.com/questions/1722807/git-convert-git-urls-to-http-urls/11383587#11383587). If SASS brings up an error about file encodings being wrong, add this to your .bash_profile:
```bash