Query from my hosting provider - since we need to use a preassigned port that’s generated at random.
I’m assuming the bench command has some sort of configuration option to assign its port, so you can use a proxy port app to get a port assignment and then configure bench to listen on that port.
How do I get bench to ‘listen’ to a pre-defined port number ?
But I think we’re missing the point here - what we want is to change the port number of frappe’s bundled web server (gunicorn) which we can run on OpalStack as an app on a pre-assigned port number generated by OpalStack which we need to set in manually in frappe’s custom server’s config. OpalStack’s default NGINX will connect to frappe’s server’s port and run it within itself.
This is how we can run Tomcat, NextJS, Go or any other server within the shared resources - but in the user’s home directory and allocated resources.
I realize this may not be possible on a managed VPS hosting without sudo access.
Guess I’ll stick to a Ubuntu droplet at DigitalOcean.
I’ll use the EasyScript.