Skip to content

Instantly share code, notes, and snippets.

@digilord
Last active September 18, 2015 07:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save digilord/f84c6d45b9e7ed397240 to your computer and use it in GitHub Desktop.
Save digilord/f84c6d45b9e7ed397240 to your computer and use it in GitHub Desktop.
New Digital Ocean server setup for meteor app
#!/bin/bash -x
# useradd -m digilord # Uncomment and change digilord to your username if you want to add a user for yourself
sudo apt-get install build-essential -y
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update -y
sudo apt-get install nodejs -y
sudo apt-get install mongodb -y
sudo apt-get install git -y
sudo apt-get install nginx -y
sudo apt-get install htop -y
sudo apt-get install tree -y
sudo apt-get install figlet -y
sudo apt-get install git-core -y
sudo apt-get install munin -y
curl https://install.meteor.com | /bin/sh
sudo npm install -g meteorite
sudo npm install -g pm2
# Do we have swap?
grep swap /etc/fstab -q
status=$?
if [ $status -ne 0 ]; then
dd if=/dev/zero of=/swapfile bs=1024 count=1048576
echo "/swapfile none swap sw 0 0" >> /etc/fstab
mkswap /swapfile
swapon /swapfile
fi
if [ ! -d /home/meteor ]; then
mkdir meteor
fi
cd /home/meteor
# git clone https://github.com/me/my_meteor_app.git app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment