Hi, I’m having issues getting the production environment working after running through the frappe framework development tutorial. When I finished working on the tutorial I used the command bench use site1.local
to change to the default erpnext site that was installed as default, from the tutorial site “library”
I then followed the “Easy Production Setup” instructions on this page:
https://frappe.github.io/frappe/user/en/bench/guides/setup-production.html with a minor change as follows(maybe/maybe-not someone needs to update that page?):
Instead of (as per the link) sudo bench setup production
which produces the following error on my machine
Usage: bench setup production [OPTIONS] USER
Error: Missing argument "user".
I included my username as sudo bench setup production chris
which did not return any errors and when prompted I answered yes to replace the supervisor.conf and nginx.conf files.
I then tried to access the site in my browser at http://localhost and got this error
Not Found`
./localhost/site_config.json does not exist
I have check that this file is inside the ~/frappe-bench/sites/site1.local
folder and contains the following code:
{
"db_name": "1bd3e0294d",
"db_password": "something",
"developer": 1
}
The nginx.conf and supervisor.conf files are in the the ~/frappe-bench/config
directory and populated. The links are at /etc/nginx/conf.d/frappe-bench.conf
and /etc/supervisor/conf.d/frappe-bench.conf
and “nginx” and “supervisord” are running. The ~/frappe-bench/sites/currentsite.txt
file contains “site1.local” (without the quotes).
I’ve tried restarting the nginx and supervisor servers, got rid of the "developer": 1
in the site_config.json
file, tried all the ideas that I have found in this forum but still nothing. I can change back to “developer mode” and run the commands at https://github.com/frappe/bench/wiki/Stopping-Production-and-starting-Development and then go to http://localhost:8000
and access my erpnext site, but not in production mode.
Any ideas?