Created
April 20, 2014 20:40
-
-
Save vdavez/11124735 to your computer and use it in GitHub Desktop.
DC-Code-Editor Deploy Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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