How to deploy your ktor server into vps server in simple way

preview_player
Показать описание
In this tutorial, I will show how you can package your Ktor server and deploy it for simple use

this is not really the best way, since it package the whole application and upload it to the Vps server every single time you want to deploy the server, it automated but still you might want use something better, like setup git on the server, authentication with the remote on the server and push the changes and run command to package the application and rerun, this is a better approch, if you find it quite hard, you might want use cloud services like Amazon Aws, Heroku, Google app engine etc... they will do all of this for you

if you are freelancer then creating this whole thing every time and update it manually is not a good solution, you might want build your own Gradle plugin and use it or automated script that do all of this, or just use something simple like Heroku, I don't recommened to build it from scratch for your clients, because you will have to manually manage the server and that cost you time and cost them money, for your own application it might be good idea

even if you decide to use a prebuilt solution, you might still want to get an overview of how does thing works

I'm really sorry the video was really bad because I hadn't gotten good sleep for a while
but I promise a remake if someone wants

but you can still see the tutorial that I created on Github gist:

also see the Github repository:

Please feel free to reach out if you have any questions or suggestions

#ktor #coding #kotlin #development
Рекомендации по теме
Комментарии
Автор

Would be cool if you remake video with just steps you do on your base project and it will be under 30 min.
This video would be virus, because there is so much people want to setup it like that and there is absolutly minim info in the net.

mYseLF
Автор

Спасибо, очень хороший мануал. Прецедент с моей страной не позволяет мне идти на риск использования сторонних удобных сервисов, так как меня в них могут просто удалить, демократия и свобода это не для всех. Поэтому для своего сервиса мне нужно делать все на надежных контролируемых мною инструментах.

Sarumsv
Автор

This is a nice video. Am experiencing a problem in configuring my ktor server to accept ssl. I have my domain registered in namecheap and already downloaded and uploaded my cert to the Hostinger vps server but am still experiencing the apache default page. how my i contact you?

themindsetgarage