This repository has been archived by the owner on Nov 30, 2018. It is now read-only.
forked from serlo/athene2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
52 lines (46 loc) · 1.67 KB
/
Vagrantfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- 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/trusty32"
config.vm.provision :shell, :path => "./bin/vagrant/bootstrap.sh"
config.vm.network :forwarded_port, host: 4567, guest: 80
config.vm.network :forwarded_port, host: 4568, guest: 8080
config.vm.network :forwarded_port, host: 3456, guest: 3306
config.vm.synced_folder "./",
"/vagrant",
:owner => "vagrant",
:group => "vagrant",
type: "rsync",
rsync__auto: "true",
rsync__exclude: [
"src/public/assets/",
"composer.lock",
".idea/",
"src/data/",
"src/vendor/",
"src/assets/build/",
"src/assets/tmp/",
"src/assets/source/bower_components",
"src/assets/node_modules",
"src/assets/athene2-editor/build",
"src/assets/athene2-editor/tmp",
"src/assets/athene2-editor/source/bower_components",
"src/assets/athene2-editor/node_modules"
],
rsync__args: ["--verbose", "--archive", "--delete", "--stats"]
config.vm.provider :virtualbox do |vb|
# Solves an issue with dns resolving (nodejs)
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'off']
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
config.trigger.after :up do
run "vagrant ssh -c 'sh /vagrant/bin/vagrant/boot.sh'"
run "vagrant rsync-auto"
end
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.aliases = %w(de.serlo.local en.serlo.local)
end