From fef0526bc9dd2067ee77f55988d05705d96a9d20 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 31 Dec 2017 15:22:00 +0100 Subject: [PATCH] create the path /srv/media/images in the Vagrant vm This is necessary due to permissions problems. If apache server creates the directory the django server looses permission to write in it. This is only a problem during development in production apache is the only running webserver. --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index f32fe7a..cea707a 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -35,7 +35,7 @@ Vagrant.configure("2") do |config| #Copy the apache configuration for django to the correct place cp /vagrant/apache/000-default.conf /etc/apache2/sites-available/ - mkdir /srv/media + mkdir -p /srv/media/images chmod -R 777 /srv/media #restart the webserver