Created
March 8, 2013 00:25
-
-
Save ivarprudnikov/5113185 to your computer and use it in GitHub Desktop.
AWS Ubuntu ami user data to init instance. Installs node.js, creates upstart script and runs it.
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 | |
# install node.js | |
apt-add-repository -y ppa:chris-lea/node.js | |
apt-get update | |
apt-get install -y python-software-properties nodejs npm git make g++ | |
# install girror (https://github.com/eladb/node-girror) | |
npm install -g girror | |
# create /etc/init/node.conf | |
echo 'actual node.conf code' > /etc/init/node.conf | |
# start it | |
start node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment