Support #693
Updated by Daniel Curtis about 9 years ago
This is a guide on installing a CodeCombat instance on Debian 8. h2. Prepare the Environment * Obtain root shell: <pre> sudo -s </pre> * Makr sure the system is up to date: <pre> apt-get update && apt-get upgrade </pre> * Install a few dependencies: <pre> apt-get install build-essential python2.7 git curl mongodb libkrb5-dev </pre> * Enable full text search in mongodb: <pre> echo 'setParameter = textSearchEnabled=true' >> /etc/mongodb.conf </pre> #* And restart mongodb for text search to take effect: <pre> service mongodb restart </pre> * Install the nodejs repository: <pre> curl --silent --location https://deb.nodesource.com/setup_0.12 | bash - </pre> #* Then install nodejs: <pre> apt-get install nodejs </pre> * Install bower and brunch globally: <pre> npm install -g bower brunch </pre> * Exit the root user: <pre> exit </pre> h2. Install CodeCombat * Clone the CodeCombat code from GitHub: <pre> mkdir ~/git && cd ~/git git clone https://github.com/codecombat/codecombat.git cd codecombat </pre> * Install the node module dependencies: <pre> npm install </pre> #* A few additional node modules needed to be install: <pre> npm install pause bytes geoip-lite mongodb-core </pre> * Database Import <pre> cd /tmp && wget -O data.tar.gz http://analytics.codecombat.com:8080/dump.tar.gz tar xzf data.tar.gz mongorestore --drop --noIndexRestore --host 127.0.0.1 dump/ </pre> * Now start the server: <pre> npm start </pre> h2. Resources * https://github.com/codecombat/codecombat * https://github.com/codecombat/codecombat/wiki/Dev-Setup:-General-Information * https://github.com/codecombat/codecombat/wiki/Dev-Setup:-Linux#complex-linux-installation