DEV Community

Discussion on: 🚚 How to deploy Golang application on any GNU/Linux system, but without Docker?

yoursunny profile image
Junxiao Shi

I find it easier to run Go programs with pm2, together with Node.js programs.

As for the reverse proxy, I use nginx mostly but am doing trial deployments with Caddy.

If the service doesn't need to be on port 443 (backend API), I may skip the reverse proxy altogether and let the Go program listen on port 8443 of an IPv6 address using a self-signed certificate, and then enable Cloudflare in front of it.

koddr profile image
Vic Shóstak Author

Hello! Yes, of course, you can choose this path.

In this article I showed you a way to do this on the built-in tools (almost every distribution already has Nginx installed, for example) and with a minimum of configuration effort... 😉