Skip to content

Instantly share code, notes, and snippets.

@dirkk0
Created July 17, 2013 13:28
Show Gist options
  • Select an option

  • Save dirkk0/6020551 to your computer and use it in GitHub Desktop.

Select an option

Save dirkk0/6020551 to your computer and use it in GitHub Desktop.
Installing Echoplexus on Amazon EC2
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