Created
July 17, 2013 13:28
-
-
Save dirkk0/6020551 to your computer and use it in GitHub Desktop.
Installing Echoplexus on Amazon EC2
This file contains hidden or 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
| sudo apt-get update | |
| # get ec2 ip and hostname | |
| curl http://169.254.169.254/latest/meta-data/public-ipv4 > public.ip | |
| curl http://169.254.169.254/latest/meta-data/public-hostname > public.hostname | |
| sudo apt-get install --yes build-essential curl git | |
| #install latest node | |
| sudo apt-get install --yes python-software-properties python g++ make | |
| sudo add-apt-repository --yes ppa:chris-lea/node.js | |
| sudo apt-get update | |
| sudo apt-get install --yes nodejs | |
| sudo apt-get install -y redis-server | |
| git clone https://github.com/qq99/echoplexus | |
| cd echoplexus | |
| npm install; npm run-script bower; sudo npm install -g grunt-cli | |
| npm run-script build; grunt; cp server/config.sample.js server/config.js | |
| sed -e "s/chat.echoplex.us/`cat public.hostname`/g" echoplexus/server/config.js > temp && mv temp echoplexus/server/config.js | |
| cd .. | |
| screen -S server -L -dm bash -c "cd echoplexus; npm start" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment