Created
April 1, 2012 13:39
-
-
Save dirkk0/2275361 to your computer and use it in GitHub Desktop.
Install Browserquest on Amazon EC2
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
# see http://web3dblog.wordpress.com/2012/03/30/installing-browserquest-on-amazon-ec2/ | |
apt-get update | |
apt-get upgrade | |
apt-get install --yes build-essential g++ libssl-dev curl git-core | |
apt-get install --yes libxml2-dev libssl0.9.8 | |
export NODE_VERSION='0.6.8' | |
wget http://nodejs.org/dist/node-v$NODE_VERSION.tar.gz | |
tar xvfz node-v$NODE_VERSION.tar.gz | |
cd node-v$NODE_VERSION | |
./configure --prefix=~/local | |
make install | |
cd ~ | |
# add node to path | |
# (see http://increaseyourgeek.wordpress.com/2010/08/18/install-node-js-without-using-sudo/) | |
export PATH=~/local/bin:${PATH} | |
echo 'export PATH=~/local/bin:${PATH}' >> ~/.bashrc | |
https://github.com/mozilla/BrowserQuest.git | |
curl http://npmjs.org/install.sh | sh | |
---browserquest---- | |
npm install underscore log bison websocket websocket-server sanitizer memcache | |
git clone https://github.com/mozilla/BrowserQuest.git | |
# I usually start client and servers in separate screens | |
# screen -S server | |
node server/js/main.js | |
# screen -S client | |
cd client | |
npm install -g http-server | |
# (edit config_local.json) | |
cp -r ../shared . | |
cp config/config_local.json config/config_build.json | |
http-server -p 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
line 10 needs to be changed to wget http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.gz for it to work now
line 24 change http tp https curl https://npmjs.org/install.sh | sh