question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to deploy to Heroku

See original GitHub issue

Hi,

I was playing with the numbers-fullstack-ktor sample. I could not get to work when pushing to Heroku. Did you not place the “stage” task on the sample? Just wondering how did you push it to Heroku.

`! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. Detected buildpacks: Gradle,Node.js See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order -----> Gradle app detected -----> Installing JDK 1.8… done -----> Building Gradle app… -----> executing ./gradlew stage Downloading https://services.gradle.org/distributions/gradle-5.3.1-all.zip

   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Task 'stage' not found in root project 'build_ec5df8584cf853f6eed8de6fbf8979ff'.
   
   * Try:
   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. Run with --scan to get full insights.
   
   * Get more help at https://help.gradle.org
   
   BUILD FAILED in 27s

! ERROR: Failed to run Gradle! It looks like your project does not contain a ‘stage’ task, which Heroku needs in order to build your app. Our Dev Center article on preparing a Gradle application for Heroku describes how to create this task: https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku

   If you're stilling having trouble, please submit a ticket so we can help:
   https://help.heroku.com
   
   Thanks,
   Heroku

! Push rejected, failed to compile Gradle app. ! Push failed`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rjaroscommented, May 11, 2020

Are you trying to push simple, frontend-only application to Heroku? Why do you want to do this? Frontend application doesn’t need any server to run. You just need plain, static hosting - e.g. on Netlify.

0reactions
solidogencommented, May 11, 2020

@rjaros I have problems pushing template app to heroku

I added empty package.json file and set GRADLE_TASK to -Pprod=true JsJar since jar is not found. App compiles and gets pushed correctly, but it then crashes with: npm ERR! missing script: start

Is there something obvious that I’m missing?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying with Git - Heroku Dev Center
To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your...
Read more >
Heroku Deploy – How to Push a Web App or Site to Production
Step 1 - Create the project · Step 2 - Version control system · Step 3 - Link the repository with Heroku ·...
Read more >
How To Deploy Your Website On Heroku For Free Using ...
Prerequisites · For hosting any website on Heroku, you need to first push all your project code into Github, if you have no...
Read more >
Deploying a Back-End with Heroku - Codecademy
Deploying to Heroku ... Login to your Heroku account and click the New button in the upper right corner of you dashboard. Then...
Read more >
Integrate with Heroku Deployment - CircleCI
All you need to do to deploy to Heroku from CircleCI is to configure your Heroku credentials in our UI, add a simple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found