How can I deploy Frappe on a production server using a non-default port (e.g., 8080) instead of the default port 80?
Use the below command to set different port:
bench set-nginx-port sitename 8080
Thanks, @mangroliya. I have already tried this command before from Setup Multitenancy but it doesn’t work! Is there something else I’m missing maybe? I want to run two frappe apps in production one is already using port 80, and I want another one to use port 8080.
Please follow the Port Based Multitenancy and not the DNS based.
You can create a new site and make run it on a different port (while the first one runs on port 80).
- Switch off DNS based multitenancy (once)
bench config dns_multitenant off
- Create a new site
bench new-site site2name
- Set port
bench set-nginx-port site2name 82
- Re generate nginx config
bench setup nginx
- Reload nginx
sudo service nginx reload
@mangroliya The frappe apps are installed in two different benches, one bench is already running on port 80.
Please go through this thread for your scenario: Multi Bench Setup with DNS based multitenancy at Production Server. How To? - Install / Update / Setup - Frappe Forum