Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CodeCombat is a multiplayer programming game for learning how to code. **See the

It's both a startup and a community project, completely open source under the [MIT and Creative Commons licenses](http://codecombat.com/legal). It's the largest open source [CoffeeScript](http://coffeescript.org/) project by lines of code, and since it's a game (with [really cool tech](https://github.com/codecombat/codecombat/wiki/Third-party-software-and-services)), it's really fun to hack on. Join us in teaching the world to code! Your contribution will go on to show millions of players how cool programming can be.

### [Getting Started](https://github.com/codecombat/codecombat/wiki/Developer-environment)
### [Getting Started](https://github.com/MaximKraev/codecombat/wiki/Developer-environment)

We've made it easy to fork the project, run a simple script that'll install all the dependencies, and get a local copy of CodeCombat running right away on Mac, Linux, or Windows. See [the docs for details](https://github.com/codecombat/codecombat/wiki/Developer-environment).

Expand Down
2 changes: 1 addition & 1 deletion bin/coco-mongodb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ if not mongo_executable:
mongo_db_path = os.path.abspath(os.path.join(current_directory,os.pardir)) + os.sep + u"mongo"
if not os.path.exists(mongo_db_path):
os.mkdir(mongo_db_path)
mongo_arguments = [mongo_executable + u" --setParameter textSearchEnabled=true --dbpath=" + mongo_db_path]
mongo_arguments = [mongo_executable + u" --setParameter textSearchEnabled=true --smallfiles --dbpath=" + mongo_db_path]
call(mongo_arguments,shell=True)

6 changes: 3 additions & 3 deletions scripts/devSetup/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

repositoryUrl=${1:-https://github.com/codecombat/codecombat.git}
repositoryUrl=${1:-https://github.com/MaximKraev/codecombat.git}
deps=( git python )
NODE_VERSION=v0.10
function checkDependencies { #usage: checkDependencies [name of dependency array] [name of error checking function]
Expand Down Expand Up @@ -60,5 +60,5 @@ if command -v node >/dev/null 2>&1; then
fi
#install git repository
git clone $repositoryUrl coco
#python ./coco/scripts/devSetup/setup.py
echo "Now copy and paste 'sudo python ./coco/scripts/devSetup/setup.py' into the terminal!"
python ./coco/scripts/devSetup/setup.py
#echo "Now copy and paste 'sudo python ./coco/scripts/devSetup/setup.py' into the terminal!"
8 changes: 4 additions & 4 deletions scripts/devSetup/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def setup(self):
self.config.directory.remove_tmp_directory()
print("Changing permissions of files...")
#TODO: Make this more robust and portable(doesn't pose security risk though)
subprocess.call("chmod -R 755 " + self.config.directory.root_dir + os.sep + "coco" + os.sep + "bin",shell=True)
chown_command = "chown -R " + os.getenv("SUDO_USER") + " bower_components"
chown_directory = self.config.directory.root_dir + os.sep + "coco"
subprocess.call(chown_command,shell=True,cwd=chown_directory)
# subprocess.call("chmod -R 755 " + self.config.directory.root_dir + os.sep + "coco" + os.sep + "bin",shell=True)
# chown_command = "chown -R " + os.getenv("SUDO_USER") + " bower_components"
# chown_directory = self.config.directory.root_dir + os.sep + "coco"
# subprocess.call(chown_command,shell=True,cwd=chown_directory)

print("")
print("Done! If you want to start the server, head into coco/bin and run ")
Expand Down
2 changes: 1 addition & 1 deletion scripts/devSetup/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def check_if_root():

if __name__ == u"__main__":
print("Code Combat Development Environment Setup Script")
check_if_root()
# check_if_root()
setup = factories.constructSetup()
setup.setup()

Expand Down