Question

how to deploy golang program in production

Posted May 10, 2016 45.4k views
MongoDB Go

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.

3 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

With golang its very easy to deploy an app.Infact you don’t need any tool .Following this tutorial save me alot of time How to deploy golang application to digital ocean step by step

Submit an Answer