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> * Make 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> h3. MongoDB * Add the mongodb public gpg key: <pre> apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 </pre> * Then add the mongodb apt source list: <pre> echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' >> /etc/apt/sources.list.d/mongodb.list apt-get update </pre> * Install the latest stable mongodb: <pre> apt-get install mongodb-org </pre> #* Enable full text search in mongodb: <pre> echo 'setParameter = textSearchEnabled=true' >> /etc/mongod.conf /etc/mongodb.conf </pre> #* And restart mongodb for text search to take effect: <pre> service mongodb restart </pre> h3. NodeJS * 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