forked from SlexAxton/rhokgoh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvagrant.sh
More file actions
31 lines (21 loc) · 719 Bytes
/
vagrant.sh
File metadata and controls
31 lines (21 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# This is the provisioning script
which node
if [ "$?" -ne "0" ]; then
echo "Installing Node and MongoDB and stuffs"
#!/bin/bash
# This is the Vagrant provisioning script
sudo apt-get update
# Let's install everything...
sudo apt-get install -y nginx make python-software-properties mongodb
# Install Node JS (need to add special repo)
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs npm
# Install Node modules
sudo npm install -g express hbs node-inspector supervisor
sudo npm install -g mongodb --mongodb:native
# Setup MongoDB data dir
sudo mkdir -p /usr/local/var/mongodb
sudo chmod 777 /usr/local/var/mongodb
fi