Skip to content

Instantly share code, notes, and snippets.

@ellipsonic
Created August 8, 2015 17:22
Show Gist options
  • Save ellipsonic/3e2f3531a6d62982e916 to your computer and use it in GitHub Desktop.
Save ellipsonic/3e2f3531a6d62982e916 to your computer and use it in GitHub Desktop.
MeteorToDo
# Update
sudo apt-get -y update
# Install git and curl
sudo apt-get -y install curl
sudo apt-get -y install git
sudo apt-get -y install mongodb
# Install meteor
sudo curl https://install.meteor.com/ | sh
# Set Locale
export LANG=C
export LC_ALL=C
# Clone the repo
meteor create --example todos
cd todos
# Map the private IP to public IP
private_ip=$(hostname -i)
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination $private_ip:3000
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
sudo meteor <&- &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment