Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

My Project files are in the root directory. The settings.py of my project is
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
STATICFILES_DIRS =['/root/templates/colorlib-regform-6']
STATIC_ROOT = '/root/static'
MEDIA_ROOT = '/root/media'
there are folders named static and media for holding static files
gunicorn is also working plus Nginx is also ok. No errors:
/etc/nginx/sites-available/Projectname
server {
listen 80;
server_name 104.131.89.148;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root / ;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}
Then I have tried restarting gunicorn and nginx plus
python3 manage.py collectstatic
This also works fine and static files are collected. Everything is working fine, except the server is not serving static files. The project works perfectly in local.
Any help or suggestions regarding this,
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e