fix: conditionally mount the dokku-arch folder if it exists

Closes #4158
This commit is contained in:
Jose Diaz-Gonzalez
2020-11-08 18:16:49 -05:00
parent 05bf72e0d8
commit bd9d9fb5b9

4
Vagrantfile vendored
View File

@@ -103,7 +103,9 @@ Vagrant::configure("2") do |config|
config.vm.define "build-arch", autostart: false do |vm|
vm.vm.box = "bugyt/archlinux"
vm.vm.synced_folder File.dirname(__FILE__), "/dokku"
vm.vm.synced_folder "#{File.dirname(__FILE__)}/../dokku-arch", "/dokku-arch"
if Pathname.new("#{File.dirname(__FILE__)}/../dokku-arch").exist?
vm.vm.synced_folder "#{File.dirname(__FILE__)}/../dokku-arch", "/dokku-arch"
end
vm.vm.network :forwarded_port, guest: 80, host: FORWARDED_PORT
vm.vm.hostname = "#{DOKKU_DOMAIN}"
vm.vm.network :private_network, ip: DOKKU_IP