-
Go to Heroku's website.
-
Log In. If you do not have an account please set it up. [Tip: Using GitHub to setup account makes things easier + you can make use of GitHub Education Pack if you are a student]
-
Open Your Dashboard
-
Click on Create New App.
-
Give an appropriate name and click
next
. -
Change the
Deployment method
toGitHub
and connect your account. -
Now, search for the repository you made and modified using this template.
-
Connect it.
-
Choose the branch. (Initially, this would be the master branch and later you can have multiple branches to choose from if you are experimenting with prototypes of different models trained for the same task.)
-
Choose either automatic or manual deploy.
NOTE: Unless you have a CI like CircleCI set up in your repository and are aware of how it works please go for
Manual Deploy
option. -
Click on
Deploy Branch
.
Sit back and relax! Your entire app is being setup and will be served in a while.
-
If you wish to check the size occupied by your files for the deploy in Heroku:
-
Open your app dashboard
-
Click on
More
Option on the right of the Menu bar -
Select
Run Console
-
Paste the command:
$ du -sh * | sort -hr
-
Press Enter.
-
-
You can add a
.slugignore
file (Similar to a.gitignore
file we use for git to untrack files while we add/commit) to your application to tell the slug compiler to ignore any unnecessary files in your application, such as static assets. -
To View Logs using CLI:
$ heroku logs --tail
NOTE: For the free tier, it is suggested that you use models that are small in size to avoid issues to the limited slug size Heroku Provides.