From be7eb4777a5ac65c06f12a394f20a660b3dfd638 Mon Sep 17 00:00:00 2001 From: maximka Date: Tue, 13 May 2014 15:49:29 +0000 Subject: [PATCH] sudo calls removed --- README.md | 2 +- bin/coco-mongodb | 2 +- scripts/devSetup/bootstrap.sh | 6 +++--- scripts/devSetup/factories.py | 8 ++++---- scripts/devSetup/setup.py | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e26e5b2f253..8160b8318f5 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/bin/coco-mongodb b/bin/coco-mongodb index 55b60e90eff..ba5516cb03c 100755 --- a/bin/coco-mongodb +++ b/bin/coco-mongodb @@ -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) diff --git a/scripts/devSetup/bootstrap.sh b/scripts/devSetup/bootstrap.sh index 9d1f34b8ebb..a4098d72bbc 100644 --- a/scripts/devSetup/bootstrap.sh +++ b/scripts/devSetup/bootstrap.sh @@ -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] @@ -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!" diff --git a/scripts/devSetup/factories.py b/scripts/devSetup/factories.py index 1eab847bb20..95f34d79d1a 100644 --- a/scripts/devSetup/factories.py +++ b/scripts/devSetup/factories.py @@ -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 ") diff --git a/scripts/devSetup/setup.py b/scripts/devSetup/setup.py index 5c4165bdc31..6b4013ce8fc 100644 --- a/scripts/devSetup/setup.py +++ b/scripts/devSetup/setup.py @@ -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()