I am using oficial frappe docker on my local machine. After install frappe and sudo bench setup production frappe
I am still getting Welcome to nginx
page.
I deleted file /etc/nginx/sites-available/default inside docker container, restarted nginx. sites-enabled
folder is empty.
Any additional steps I need to do?
Hello, what url did you use to access the site?
Was it localhost:80? Or localhost:8000?
It’s 127.0.0.1:80
Hi
Try
Re generate nginx config
bench setup nginx
Reload nginx
sudo service nginx reload
Should be on port 8000 as littlehera points out, or possibly 8080, but not 80
This is strange because when I am using comand ‘setup production’ I am getting message ‘Site some_site assigned port: 80’.
Also, I found strange error when I am running comand ‘setup production’ first time:
error: <class ‘socket.error’>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228
I am tried to restart supervisor but after that site become inaccessible.
You can change the port to your preference like this… (I used 8123 in the example, but you can use anything in the range 1024-65536, as long as it isn’t a reserved port that’s already in use)
bench set-nginx-port site1.local 8123
nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
bench setup nginx
sudo systemctl reload nginx
sudo service postgresql start
sudo service redis-server restart
sudo service nginx restart
sudo service supervisor start
run these and reload the page