forked from kevinastone/django-api-rest-and-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
23 lines (18 loc) · 818 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$setup = <<SCRIPT
DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:chris-lea/node.js
DEBIAN_FRONTEND=noninteractive apt-get update
SCRIPT
$dependencies = <<SCRIPT
DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql libpq-dev
DEBIAN_FRONTEND=noninteractive apt-get install -y python-dev libjpeg-dev zlib1g-dev
DEBIAN_FRONTEND=noninteractive apt-get install -y python-virtualenv virtualenvwrapper
DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs
SCRIPT
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/trusty64'
config.ssh.forward_agent = true
# Forward the dev server port
config.vm.network :forwarded_port, host: 8000, guest: 8000
config.vm.provision "shell", inline: $setup
config.vm.provision "shell", inline: $dependencies
end