View install-nodemon.sh
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 -y wget curl npm && \ | |
sudo npm install -g n && \ | |
sudo n stable && \ | |
sudo ln -s /usr/bin/nodejs /usr/bin/node && \ | |
sudo npm install -g nodemon |
View install-docker.sh
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 -y apt-transport-https ca-certificates | |
sudo apt-key adv \ | |
--keyserver hkp://ha.pool.sks-keyservers.net:80 \ | |
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual |
View gist:6acb4258e06d830539b7
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
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080 |
View vagrant-npm-install-symlink-fix.sh
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
npm install --no-bin-link --save express |
View ubuntu-nodemon-setup.sh
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
sudo apt-get update && \ | |
sudo apt-get install -y wget curl npm && \ | |
sudo npm install -g n && \ | |
sudo n stable && \ | |
sudo ln -s /usr/bin/nodejs /usr/bin/node && \ | |
sudo npm install -g nodemon |
View ubuntu-nodemon.Dockerfile
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
# Dockerfile for a generic Ubuntu Node.js server | |
FROM ubuntu:14.04 | |
RUN apt-get update | |
RUN apt-get install -y wget curl npm | |
RUN npm install -g n | |
RUN n stable | |
RUN ln -s /usr/bin/nodejs /usr/bin/node | |
RUN npm install -g nodemon |