Heroku offers the option to host a docker application even on his free tier, the downside is it will take considerable time every time the app needs to be up. Once up it will work perfectly.
Steps:
1) You must have a Heroku account and install the Heroku command line.
2) Inside the root of your app folder execute:
$ heroku login
3) After login into Heroku, execute the following command to login into the Heroku container service.
$ heroku container:login
4) The following command will create an app called "api-translator-esp-guc":
$ heroku create api-translator-esp-guc($ heroku create api-translator-guc-esp)
5) Once you made your change, push your work to Heroku:
$ heroku container:push web --app api-translator-esp-guc
6) At last you must release the version of your app:
$ heroku container:release web --app api-translator-esp-guc
The URL will be the name of your app plus ".herokuapp.com", in our example:
api-translator-esp-guc.herokuapp.com/
Troubleshooting
To check the logs, using terminal and being login as indicated on step 2, execute:
$ heroku logs -a api-translator-esp-guc
You can restart you instance with the follow commands:
$ heroku ps:scale web=0 -a api-translator-esp-guc$ heroku ps:scale web=1 -a api-translator-esp-guc
To change the boot timeout visit: https://tools.heroku.support/limits/boot_timeout
5) Once you made your change, push your work to Heroku:
$ heroku container:push web --app api-translator-esp-guc
6) At last you must release the version of your app:
$ heroku container:release web --app api-translator-esp-guc
The URL will be the name of your app plus ".herokuapp.com", in our example:
api-translator-esp-guc.herokuapp.com/
Troubleshooting
To check the logs, using terminal and being login as indicated on step 2, execute:
$ heroku logs -a api-translator-esp-guc
You can restart you instance with the follow commands:
$ heroku ps:scale web=0 -a api-translator-esp-guc$ heroku ps:scale web=1 -a api-translator-esp-guc
To change the boot timeout visit: https://tools.heroku.support/limits/boot_timeout
No comments:
Post a Comment