Member-only story
Deploy Ktor App with Postgresql on Heroku
So In this article we are going to learn how to deploy ktor app with postgresql database on Heroku server 😍 . I have already create a ktor application , if you want to get access of the project click here.
first we need to install heroku cli (command line interface) on your system 😉, through cli we will deploy ktor app on server.
For mac and linux installation , paste this command on terminal
brew tap heroku/brew && brew install heroku
for window installation , go to this website and download
Let’s check , is heroku cli installed on your system or not ? type the below command on terminal
heroku --version
Now login into heroku through below command.
heroku login
Now it’s time to start the deployment process on heroku server , so go to your project , open build.gradle file and add the shadow plugin or dependencies and start sync.