<#C0A974TJ9|ktor> Hey guys. How can i solve the be...
# server
k
#ktor Hey guys. How can i solve the below error when deploying to heroku _remote: FAILURE: Build failed with an exception. remote: remote: * What went wrong: remote: Task 'stage' not found in root project 'ipay_rest'. remote: remote: * Try: remote: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. remote: remote: BUILD FAILED in 14s remote: remote: ! ERROR: Failed to run Gradle! remote: It looks like your project does not contain a 'stage' task, which Heroku needs in order remote: to build your app. Our Dev Center article on preparing a Gradle application for Heroku remote: describes how to create this task: remote: https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku remote: remote: If you're stilling having trouble, please submit a ticket so we can help: remote: https://help.heroku.com remote: remote: Thanks, remote: Heroku remote: remote: ! Push rejected, failed to compile Gradle app. remote: remote: ! Push failed_
Like how am i supposed to create a stage. Am using Intellij.
s
Copy code
remote:        It looks like your project does not contain a 'stage' task, which Heroku needs in order
remote:        to build your app. Our Dev Center article on preparing a Gradle application for Heroku
remote:        describes how to create this task:
remote:        <https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku>
k
The are suggesting git add gradle/wrapper but am still getting the same error.
this is a gradle/heroku-specific question, would recommend googling how to set up custom build stages in gradle or asking on stackoverflow
k
Thanks Shawn. That link worked for me
s
good to hear. read your error output
k
Okay. The application is now deployed. Am trying to run at least one instance of the app with heroku ps:scale web=1 This is the error am getting Scaling dynos... !Couldn't find that process type. So what could be the right process type. Am running on Netty.
stackoverflow 1
s
we’re definitely out of the realm of anything kotlin-specific now
k
Okay. Probably i should go the Spring Boot way.
Am so curious to see how Ktor runs on remote server.
g
It runs the same way as ony other web server. In case of heroku just configure build You can check this example https://github.com/orangy/ktor-heroku-start
This example with maven from Ktor author
and this is official Heroku tutoral and sample project: https://github.com/heroku/kotlin-getting-started