after struggling for almost a week on this I feel I need to reach out for
assistance . Please Help
I am trying to deploy my project to a production environment
In terms of permissions I have read all the forums changed all permissions
i.e. 777 etc etc
srwxrwxrwx uwsgi.sock (owned by me full a
2 hours later still struggling but getting some error logs now
location /foo { return 200 "yikes ";}
returns yikes ..
however www.asandhu.xyz returns 502
log file states either uwsgi.sock failed (13: Permission denied) 664 and
owned by me
or (111: Connection refused) when chmod 777
Hello Francis ,
Thank you for your help this far
what happened was I Set DEBUG=True in Django settings , and urlpatterns +=
staticfiles_urlpatterns()
this allowed the files to be served in a non secure setting
I'm back to where I started. I added to my config
location = /test-this/ { ret
error logs and access logs contain nothing
As it is a hosting company i don't seem to have priviliges to enable
debugginh
I'm not allowed to sudo
error_log logs/error.log;
access_log logs/access.log;
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,
Django settings
STATICFILES_DIRS = [STATIC_DIR, ]
STATIC_DIR = os.path.join(BASE_DIR, 'static')
STATIC_ROOT = '/home/sandyman/production/django_project/assets/'
STATIC_URL = '/assets/'
local machine example file
/home/sandyman/development/django_project/