Skip to content

Instantly share code, notes, and snippets.

@johnfelipe
Forked from ellipsonic/RocketChat.sh
Created June 29, 2016 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnfelipe/fdde375543fc3b191454f87d551959e8 to your computer and use it in GitHub Desktop.
Save johnfelipe/fdde375543fc3b191454f87d551959e8 to your computer and use it in GitHub Desktop.
Meteor Rocket Chat
# 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
git clone https://github.com/RocketChat/Rocket.Chat.git
cd Rocket.Chat
# 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