Go on Heroku: Deploy with the CLI

Published: 27 July 2020
on channel: Heroku
2,487
6

Deploying Go applications to the cloud is really easy with the Heroku CLI, or command line interface. We will show you how by running just a few commands in your local terminal:

Open a POSIX Terminal (GNU/Linux or macOS);
Create a local Heroku Go app with the heroku apps:create command so that the basic Git workflow is automatically incorporated to the app directory;
Pushing your changes to the heroku remote will trigger an automatic deployment;
If necessary (e.g. first deploy), use heroku ps:scale to start the Heroku Dyno with the web server that runs your web app.
Optionally, open the app in a browser with heroku apps:open.

For more information:
Go app guide: https://devcenter.heroku.com/articles...
Heroku Go Support: https://devcenter.heroku.com/articles...
The Heroku CLI: https://devcenter.heroku.com/articles...
heroku apps:create command: https://devcenter.heroku.com/articles...
Git workflow: https://devcenter.heroku.com/articles...
heroku ps:scale command: https://devcenter.heroku.com/articles...
Heroku Dynos and the Dyno Manager: https://devcenter.heroku.com/articles...
heroku apps:open command: https://devcenter.heroku.com/articles...
Go on Heroku: https://www.heroku.com/go


-----

Music Credit:

Song: Inside Out - Redoux
Music provided by Ninety9Lives
Video:    • Redoux - Inside Out | Ninety9Lives re...  
Download: http://99l.tv/insideoutYU


Watch video Go on Heroku: Deploy with the CLI online without registration, duration hours minute second in high quality. This video was added by user Heroku 27 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,48 once and liked it people.