-
prod environment
make install-prod
-
dev environment
make install-dev
make dataset RAW_DATA=<path to telegram dialogs dump json> TARGET=<user_id> DATASET=<path to csv file to save generated dataset>
make train TRAIN_CONFIG=<path to config file>
make bot TOKEN=<telegram bot auth token>
-
authenticate on heroku
heroku login
-
add git
heroku
remoteheroku git:remote -a basilai-bot
-
push local
master
branch to herokumain
branchgit push heroku master:main
you can push any local branch - just change
master
to branch name -
heroku restarts application with new version automatically
-
check heroku running apps
heroku ps
-
scale heroku apps
heroku ps:scale worker=1
-
stop heroku apps
heroku ps:stop worker.1
heroku logs -t