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:
parent
29d566cf93
commit
fef0526bc9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue