Skip to content

Instantly share code, notes, and snippets.

@vdavez
Created April 20, 2014 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdavez/11124735 to your computer and use it in GitHub Desktop.
Save vdavez/11124735 to your computer and use it in GitHub Desktop.
DC-Code-Editor Deploy Script
# Initialize
sudo apt-get update
mkdir /home/user-data
# Install Git
sudo apt-get install -y git
# Install Node
sudo apt-get install -y make
sudo apt-get -y install build-essential g++ libssl-dev pkg-config
git clone https://github.com/joyent/node.git
cd node
git checkout v0.10.26 #Stable version
./configure && make && sudo make install
#Clone the Editor
cd /home/user-data/
git clone https://github.com/JoshData/dc-code-editor.git
cd dc-code-editor
# pull in external modules
git submodule update --init
# install dependencies
npm install
# install dependencies of simple-2
cd ext/simple-2
npm install
cd ../..
# install dependencies of jot
cd ext/jot
npm install
cd ../..
# download the DC Code
git clone https://github.com/JoshData/dc-code-prototype base_code
# Run the Editor using forever
sudo npm install -g forever
forever -w start editor/index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment