Need help with deploy/run

Hello, I’ve been searching around and can’t seem to find the answers to these questions:

I am developing a web-only game - it will be hosted on a public web server. I understand that we can’t just open the html file - we need to run via a web server.

How do I run my project on a different server than “cosos run -p”? I would like to use “cocos deploy” and ideally run with a node server (main reason is to allow for auto-restarting).

I’m also not getting how to use “cocos deploy”. It creates an html5 folder, but I will still have to “cocos run” in order to run the project, so what is the point of that?

Thanks in advance!

I solved this - seems pretty obvious, but I didn’t understand previously.

Using “cocos deploy” will create an /html5 folder. Copy that to your web server and you should be good to go.