Intresting posts on dtf
-
Download or clone this repository
-
Register on Heroku
-
Download and install Heroku CLI
-
Download and install git
-
Open terminal.
-
Auth Heroku
heroku login
-
Create heroku application
heroku create
-
Set env with your dtf api token
heroku config:set TOKEN=your_token_here
-
Provision postgresql database
heroku addons:create heroku-postgresql:hobby-dev
-
Add, commit and push your code into branch
master
of the remoteheroku
.git push heroku master
-
-
Specify the amount of worker that will run your application
heroku ps:scale worker=1 heroku ps:scale web=1
-
Now everything should be working. You can check your logs with this command
heroku logs --tail
-
You can open the URL where the script is deployed using the below command (if you are deploying web application)
heroku open
-
From now on you can use usual git commands (push, add, commit, etc.) to update your app. Every time you
push heroku master
your app gets redeployed with updated source code -
To stop your application scale down the amount of workers with like this
heroku ps:scale worker=0
- @michaelkrukov - https://michaelkrukov.ru/