Commit 3bf4e924 authored by Michael Paul Killian's avatar Michael Paul Killian Committed by Matthias Larisch

Add file/folder permissions 777 to /vagrant mounted folder

parent 35feac8c
Pipeline #24322161 canceled with stages
......@@ -110,12 +110,14 @@ vagrant up
`vagrant ssh` connects to the virtual machine.
Once connected to the virtual machine go to /vagrant with `cd /vagrant`
This is where you find all the files of the foodsharing repository in the VM.
From there on you can run all scripts with `./scripts/NAME`
This is where the foodsharing folder is mounted in the VM.
From there on you can run all scripts with `./scripts/NAME`
Note:
`./scripts/start` will always be executed, when you start the virtual machine with `vagrant up`
There is a known bug when running virtualbox + nginx that nginx serves files from a memory cache. If you encounter this problem, it can probably be fixed by emptying the memory cache with ``sync; sudo sh -c "/bin/echo 3 > /proc/sys/vm/drop_caches"`` or even running this every second with ``watch -n 1 'sync; sudo sh -c "/bin/echo 3 > /proc/sys/vm/drop_caches"'``
### foodsharing light and API
If you want to include the new Django API and the foodsharing light frontend, then:
......
......@@ -25,7 +25,7 @@ Vagrant.configure("2") do |config|
config.vm.provision :shell, inline: "apt-get update"
config.vm.synced_folder ".", "/vagrant", owner: "www-data"
config.vm.synced_folder ".", "/vagrant", owner: "www-data", :mount_options => ["dmode=777","fmode=777"]
config.vm.provision :docker
config.vm.provision :docker_compose
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment