Question

how to deploy golang program in production

Posted May 10, 2016 61.4k views
MongoDBGo

how to deploy golang program in production

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

Great question. Some quick googling has found this article which looks very helpful on the topic: https://peter.bourgon.org/go-in-production/

You could use a tool like OpsCaptain to deploy golang apps to your droplet. Simply connect your droplet and then download the opscaptain cli and then run [opscaptain deploy] to deploy your go apps to your server. You can also create MySQL, MongoDB and PostgreSQL databases using opscaptain on your droplet. Backups are also supported. OpsCaptain allows you to deploy apps written in any language on your droplet. Learn more here:
https://www.opscaptain.com/golang-hosting