-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
32 lines (26 loc) · 1.1 KB
/
Vagrantfile
File metadata and controls
32 lines (26 loc) · 1.1 KB
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
32
Vagrant::Config.run do |config|
# updated to use more recent version of Ubuntu
config.vm.box = "precise64"
config.vm.forward_port 3000, 3000
config.vm.forward_port 43000,43000,{ :protocol => "udp"}
config.vm.share_folder "threenode", "/home/vagrant/threenode", "threenode"
# allow for symlinks in the app folder
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/threenode", "1"]
config.vm.provision :chef_solo do |chef|
chef.add_recipe "nodejs"
# Uncomment the line below if you're using a version of node
# that doesn't include NPM, (version less than 0.6.3)
# chef.add_recipe "nodejs::npm"
chef.add_recipe "coffeescript"
chef.add_recipe "redis-server"
chef.json = {
"nodejs" => {
"version" => "0.8.11"
}
}
end
# Do a few things after setup
# sh script does not execute properly when host is windows machine as it borks up line endings,
# more info at: https://groups.google.com/forum/#!msg/vagrant-up/5oafKuFUWrg/PbYIVuZevAIJ
# config.vm.provision :shell, :path => "postsetup.sh"
end