By following these two excellent posts ( link1
<http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/>,
link2
<http://michal.karzynski.pl/blog/2013/10/29/serving-multiple-django-applications-with-nginx-gunicorn-supervisor/>),
I've created a shell script to setup multiple Django sites. Everything
works on
- Standalone Linux installation &
- Any folder inside a Vagrant Guest other than Synced Folder.
However if I run the code to create my Django application inside the
"Synced Folder *(./web/django)*",
- it takes almost 3-4 times longer to complete the script than other
folders (ie: created another folder */newwebapps* under Linux)
- the "Supervisor" wouldn't start the process and
- trying to access the page gives 502 Bad Gateway error.
If I setup my "root folder" to anything else other the synced folder, the
code works fine. I know this is a permission issue, so I re-configured my
Vagrant file to something like
config.vm.synced_folder "./web/django", "/webapps",
owner: "root",
group: "root",
mount_options: ["dmode=777,fmode=777"]
it still wouldn't work. My script has few variables (can override by
command line args) that sets up file/folder permissions.
root_folder="/webapps"
app_name=""
env_name=""
app_user="root"
app_group="root"
Does anyone have idea about how to fix this issue?
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.