go-web-app
go-web-app copied to clipboard
fix: websockets only work on port 8080
Interesting. As I understand we will have two different HTML files – one for template and another is a "compiled" template.
The only thing I don't get is "production" mode. When I don't pass a port it turns into prod? not sure if it is a good idea.
I think I should add a command prod to run the app without WebSockets.
The idea is when you run gwa build it means you are ready for production and Websockets will not be enabled. So this means Websockets only runs when using gwa dev and there will no be console error complaining of E_CONN_REFUSED since you don't actually need hot-reload again in production.
@devhammed could ya pls fetch latest binary in your PR, and also describe how your gwa build, gwa dev and prod mode will work. And also pls rename template.html to dev.html if it is only for dev server.
Once you complete all these tasks I can merge
Wow, it has been long 😏😏😏
@devhammed I will merge once you describe it's usage here and complete other requirements