Answer the question
In order to leave comments, you need to log in
What is the problem, saleor cms does not start?
ubuntu server 16.04
CMS Saleor
Everything tests correctly but does not show up in the browser.
_______________________________________________________________
~/saleor$ python manage.py runserver
Performing system checks...
System check identified some issues:
WARNINGS:
saleor.W001: Session caching cannot work with locmem backend
HINT: User sessions need to be globally shared, use a cache server like Redis.
System check identified 1 issue (0 silenced).
April 17, 2017 - 17:58:35
Django version 1.10.7, using settings 'saleor.settings'
Starting development server at 127.0.0.1:8000
Quit the server with CONTROL-C.
When you go by IP or domain, nothing loads and that's it.
nginx and uwsgi configs:
cd/etc/uwsgi/sites/project.ini :
[uwsgi]
project = saleor
uid = alina
base = /home/%(uid)
chdir = %(base)/%(project)
home = %( base)/Env/%(project)
module = %(project).wsgi:application
master = true
processes = 4
socket = /run/uwsgi/%(project).sock
chown-socket = %(uid):www-data
chmod-socket = 660
vacuum = true
_____________________________________________
Unit
/etc/systemd/system/uwsgi.service:
[Unit]
Description=uWSGI Emperor service
[Service]
ExecStartPre=/bin/bash -c 'mkdir -p /run/uwsgi; chown alina:www-data /run/uws$
ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites
Restart=always
KillSignal=SIGQUIT
Type=notify
NotifyAccess=all
[Install]
WantedBy=multi-user .target
________________________________________________________________
nginx
/etc/nginx/sites-available/project:
server {
listen 80;
server_name project.ru;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/alina/saleor;
}
location / {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/project.sock;
}
}
____________________________________________________________-
Links in enabled are created.
______________________________________________________
uwsgi in project
/home/alina/saleor/saleor/wsgi/uwsgi.ini :
[uwsgi]
die-on-term = true
http-socket = :$(PORT)
master = true
memory-report = true
module = saleor. wsgi:application
processes = 4
static-map = /static=/app/static
What's the problem, tell me?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question