diff --git a/Vagrantfile b/Vagrantfile index e33ddd1..404079f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -17,6 +17,8 @@ Vagrant.configure("2") do |config| vb.customize ["modifyvm", :id, "--cpus", 2] end + config.vm.synced_folder "./", "/space/YellowLabTools" + config.vm.provision :shell, :path => "server_config/server_install.sh" end diff --git a/server_config/server_install.sh b/server_config/server_install.sh index 521686a..062eae2 100644 --- a/server_config/server_install.sh +++ b/server_config/server_install.sh @@ -15,11 +15,8 @@ npm install forever grunt-cli -g source ~/.profile # Installation of YellowLabTools -sudo mkdir /space -sudo chown $USER /space -cd /space -git clone https://github.com/gmetais/YellowLabTools.git --branch master -cd YellowLabTools +sudo chown -R $USER /space +cd /space/YellowLabTools npm install || exit 1 # Front-end compilation