Created
August 2, 2013 18:06
-
-
Save luiseduardobrito/6142007 to your computer and use it in GitHub Desktop.
Script for preparing an EC2 instance in first boot for a Node.js v0.10.15 environment.
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install make | |
sudo apt-get install mongodb | |
wget http://nodejs.org/dist/v0.10.15/node-v0.10.15.tar.gz | |
tar -xvzf node-v0.10.15.tar.gz | |
cd node-v0.10.15 | |
sudo ./configure | |
sudo make | |
sudo make install | |
sudo npm install -g deployd | |
sudo npm install -g forever | |
# NOTE: if g++ crashes in Node.js makeifle, | |
# you have to create a swapfile for increasing | |
# ubuntu ram. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment