Hi All :wave: Anyone know when <this TODO> will be...
# server
a
Hi All 👋 Anyone know when this TODO will be updated? Need guidance on deploying Ktor to remote Ubuntu server - either a Docker deploy or other working Ktor + Linux server setup 🙏
👍 1
b
Just deploy it as any fat jar
You can use this to bundle shadow jar https://github.com/johnrengelman/shadow
DM me if you are still having issues, happy to help
a
🙏 thank you
n
1. clone the project repository to your ubuntu server 2. install jdk 3. build distribution
./gradlew installDist
4. run it
build/install/{YourProjectName}/bin/{YourProjectName}
also you can read your .env (if you have one) before running it:
while read -r line; do export $line; done < .env
a
Thank you @Nikola Minoski 🙏 I did manage to get it working however using Docker, what I need right now is automating process of pulling the docker image and rebuilding