Skip to content

Instantly share code, notes, and snippets.

@brynnb
Created September 17, 2012 00:34
Show Gist options
  • Save brynnb/3734978 to your computer and use it in GitHub Desktop.
Save brynnb/3734978 to your computer and use it in GitHub Desktop.
Installing BrowserQuest (Dev Build) on fresh EC2 Install (Ubuntu 12 x64)
apt-get update
apt-get upgrade
apt-get install -y curl build-essential pkg-config bison git npm nodejs
git clone https://github.com/browserquest/BrowserQuest.git
npm install underscore log bison websocket websocket-server sanitizer memcache
cd BrowserQuest/client
npm install -g http-server
cp -r ../shared .
cd config
curl http://169.254.169.254/latest/meta-data/public-ipv4 > public.ip
sed -e "s/Set production websocket host here/`cat public.ip`/g" config_build.json-dist > config_build.json
sed -e "s/Set local dev websocket host here/`cat public.ip`/g" config_local.json-dist > config_local.json
cd ../..
screen -S client -dm bash -c "cd client;http-server"
screen -S server -dm bash -c "node server/js/main.js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment