Support #693
Install CodeCombat on Debian
Status:
Closed
Priority:
Normal
Assignee:
Category:
Source Code Management
Target version:
Start date:
11/09/2015
Due date:
% Done:
100%
Estimated time:
1.50 h
Description
This is a guide on installing a CodeCombat instance on Debian 8.
Prepare the Environment¶
- Obtain root shell:
sudo -s
- Make sure the system is up to date:
apt-get update && apt-get upgrade
- Install a few dependencies:
apt-get install build-essential python2.7 git curl libkrb5-dev
MongoDB¶
- Add the mongodb public gpg key:
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
- Then add the mongodb apt source list:
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' >> /etc/apt/sources.list.d/mongodb.list apt-get update
- Install the latest stable mongodb:
apt-get install mongodb-org
- Enable full text search in mongodb:
echo 'setParameter = textSearchEnabled=true' >> /etc/mongod.conf
- And restart mongodb for text search to take effect:
service mongodb restart
- Enable full text search in mongodb:
NodeJS¶
- Install the nodejs repository:
curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -
- Then install nodejs:
apt-get install nodejs
- Then install nodejs:
- Install bower and brunch globally:
npm install -g bower brunch
- Exit the root user:
exit
Install CodeCombat¶
- Clone the CodeCombat code from GitHub:
mkdir ~/git && cd ~/git git clone https://github.com/codecombat/codecombat.git cd codecombat
- Install the node module dependencies:
npm install
- A few additional node modules needed to be install:
npm install pause bytes geoip-lite mongodb-core
- A few additional node modules needed to be install:
- Database Import
cd ~ && wget -O data.tar.gz http://analytics.codecombat.com:8080/dump.tar.gz tar xzf data.tar.gz mongorestore --drop --host 127.0.0.1 dump/
- Now start the server:
npm start
Resources¶
Updated by Daniel Curtis about 9 years ago
- Description updated (diff)
- Status changed from New to In Progress
- % Done changed from 0 to 30
Updated by Daniel Curtis about 9 years ago
- Description updated (diff)
- Status changed from In Progress to Resolved
- % Done changed from 30 to 100