This is an even easier process than you know. Frankly, I was intimidated when I first started because it's hard to find resources on this subject.
So, without wasting any time let's get started:
first thing you need to do is download heroku-cli from https://devcenter.heroku.com/articles/heroku-cli website
After the installation process is finished, you can check whether it is installed by typing heroku in the terminal.
Then we have to type: heroku login to login heroku habitat.
Our next command will be heroku create. After this step, heroku will create a service environment and give it a random name. You can find it in the area written in lilac color in the image below. Name given to my service: guarded-wildwood-42932
We push the container to the service with the heroku container:push web --app guarded-wildwood-42932 command. The last part of the command should be the name of the random service given to you.
It will be enough to type the heroku open --app guarded-wildwood-42932 command to access the deployed container over the Docker image and see the url. The browser will redirect you.
I hope you like. Thank you
Yorumlar
Yorum Gönder
Konuyla ilgili yorum giriniz.