Change the root directory of the project

0

I have the following file Vagranfile :

# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.vm.box = "ubuntu/trusty64"

    # Forward ports to Apache and MySQL
    config.vm.network "forwarded_port", guest: 80, host: 8080
    config.vm.network "forwarded_port", guest: 3306, host: 8889

    config.vm.provision "shell", path: "provision.sh"
end

However the directory where I need to have the files PHP is vagrant/src , however I want to change to /home/filipe/projects/havas/src/ .

Considering an installation of Vagrant 2.0.1, is it possible to change the root directory of the project?

    
asked by anonymous 03.01.2018 / 15:33

1 answer

0

Attempt to change folder synchronization , using the synced_folder property as in the following example:

config.vm.synced_folder "src/", "/srv/website"

Documentation

    
03.01.2018 / 21:33