forked from LS80/python-code-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
29 lines (22 loc) · 883 Bytes
/
Vagrantfile
File metadata and controls
29 lines (22 loc) · 883 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
# local box
config.vm.define :local, primary: true do |local|
local.vm.box_url = "https://vagrantcloud.com/ubuntu/trusty64"
local.vm.hostname = "local"
# Django runserver networking
local.vm.network "forwarded_port", guest: 8888, host: 8888
local.vm.network "forwarded_port", guest: 80, host: 8989
local.vm.network "forwarded_port", guest: 4000, host: 4000
local.vm.provision "shell",
path:"./scripts/server-setup.sh", args: ["dev", "vagrant"]
# VirtualBox Provider config
local.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "512"]
end
end
end