Przeglądaj źródła

Use a synced folder in Vagrant

Gaël Métais 8 lat temu
rodzic
commit
bb3a94eb84
2 zmienionych plików z 4 dodań i 5 usunięć
  1. 2 0
      Vagrantfile
  2. 2 5
      server_config/server_install.sh

+ 2 - 0
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

+ 2 - 5
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