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.
This commit is contained in:
Andreas Zweili 2017-12-31 15:22:00 +01:00
parent 29d566cf93
commit fef0526bc9
1 changed files with 1 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -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