https://kotlinlang.org logo
Title
d

damian

12/13/2017, 6:52 PM
hey guys. i have a project with both backend and frontend module. both in kotlin - the backend with ktor, the frontend plain JS/JQuery, but im struggling with deploying both apps to for example heroku. does someone have experience with this / can help me out?
so far heroku is telling me it's trying to execute a non-existing
stage
task. but i'm kind of puzzled what kind of task i should create. probably build both modules, and let the Procfile take over the execution? any pointers would be appreciated.
j

J-Emmanuel

12/13/2017, 8:53 PM
the stage task is something heroku looks for in your gradle file, its use is to tell heroku how to build your project
The procfile tells heroku how to run the resulting build
d

dave

12/14/2017, 7:19 AM
@damian if you're still stuck, here's an example of a project that deploys via travis/gradle to heroku. It's not ktor, but that's pretty irrelevant: https://github.com/daviddenton/http4k-demo-s3box
d

damian

12/14/2017, 9:34 AM
thanks. i actually got the deployment to work yesterday. but I still don’t know how I’m supposed to serve my kotlinJS module on heroku, since it generates a static website (at least with my config), which heroku doesnt seem to be serving (googling revealed that some ppl add
php
scripts to circumvent this, but that feels wonky)