Heroku deploy is failing - heroku

I've created a react application and it is working fine in my localhost:3000.But it is failing while I try to deploy it to Heroku.
the error I reveived:
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-wave-46792.herokuapp.com request_id=bcf25382-90d2-4d27-a4ff-423bd990c864 fwd="103.242.197.11" dyno= connect= service= status=503 bytes= protocol=https
my package.json scripts looks like this:
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server",
"build": "node server.js",
"heroku-postbuild": "npm install && npm run build"
}
my server.js looks like this:

Related

Deploy syncfusion example in Heroku

I tried to run the web-assembly of this https://github.com/syncfusion/blazor-showcase-appointment-planner in Heroku.
I added the buildpack https://github.com/jincod/dotnetcore-buildpack in Heroku, and try to deploy it. Here is the log after building it in Heroku:
2021-10-20T05:11:46.910345+00:00 heroku[web.1]: Starting process with command `cd /app/heroku_output && ./HealthTracker.Client`
2021-10-20T05:11:47.575776+00:00 app[web.1]: bash: ./HealthTracker.Client: No such file or directory
2021-10-20T05:11:47.685283+00:00 heroku[web.1]: Process exited with status 127
2021-10-20T05:11:47.893064+00:00 heroku[web.1]: State changed from starting to crashed
2021-10-20T05:12:11.000000+00:00 app[api]: Build succeeded
2021-10-20T05:12:49.235940+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=testing1020.herokuapp.com request_id=b3604c45-79db-4ff4-8a39-5b2120c831f5 fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=https
2021-10-20T05:12:50.208185+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=testing1020.herokuapp.com request_id=cee0dbd6-a639-4348-a292-401e4f119edd fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=https
2021-10-20T05:22:08.275777+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=testing1020.herokuapp.com request_id=4ecd0252-1e70-437d-ba12-787499e10715 fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=https
2021-10-20T05:22:11.799657+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=testing1020.herokuapp.com request_id=7823761f-d163-4392-b76f-7af4fdae256b fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=http
2021-10-20T05:22:12.075022+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=testing1020.herokuapp.com request_id=efeaffb9-954e-4737-9ca0-a138a3568ac5 fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=http
I tried to remove web-assembly away from the folder tree, and move its contents to the root of the repository. I then get:
2021-10-20T05:11:47.575776+00:00 app[web.1]: bash: ./HealthTracker.Client: No such file or directory
Can anyone deploy the app in Heroku, or spot any error in the deploying process?
So, for anyone with the same problem here. It's not the desired solution, but it works. I didn't manage to push my Blazor WASM project neither to Heroku (with .net buildpack) nor to GH pages.
Push your static Blazor WASM to Cloudflare pages -
Tutorial
Literally zero problems happened - push to github, paste build command in cloudflare pages interface - Deploy

Application error - When uploading my app on Heroku

Uploading my Django app on Heroku
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail
heroku logs:
2021-10-19T10:46:06.255667+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=carpriceread.herokuapp.com request_id=704fd2ae-c1b2-4a0c-b359-dc215038a6f6 fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
2021-10-19T10:55:56.839196+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=carpriceread.herokuapp.com request_id=837a3401-418a-4063-91ec-2a97c89ada73 fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
2021-10-19T10:55:57.205478+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=carpriceread.herokuapp.com request_id=63d1e63e-f0aa-4f54-9989-7c7a423bc21d fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
2021-10-19T12:43:41.062044+00:00 heroku[web.1]: State changed from crashed to starting
2021-10-19T12:43:43.722991+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2021-10-19T12:43:44.543820+00:00 app[web.1]: bash: gunicorn: command not found
2021-10-19T12:43:44.669170+00:00 heroku[web.1]: Process exited with status 127
2021-10-19T12:43:44.788929+00:00 heroku[web.1]: State changed from starting to crashed
2021-10-19T16:27:49.633265+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=carpriceread.herokuapp.com request_id=6ef8172a-9ac4-403d-b2ee-4111dfd9767a fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
2021-10-19T16:27:50.150801+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=carpriceread.herokuapp.com request_id=dbd50e93-7749-47a4-a78d-3aa74b8a450a fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
repo link:
https://github.com/tan404/Predict-Car-Selling-Price
If you are using virtul environment in your app then you have to pip install gunicorn and create a procfile and then you have to write a single line in that procfile so that heroku can detect it, see the below video for help.
https://youtu.be/Li0Abz-KT78

Heroku error during deployment of mern application

I just tried to deploy my first heroku application, but unfortunately I am getting an error.
The command heroku logs --tail throws the following error:
2020-02-14T16:35:34.990792+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/"host=agile-wildwood-52268.herokuapp.com request_id=5edfe87f-b4c7-42ee-a856-03ab806613ec fwd="88.68.64.245" dyno= connect= service= status=503 bytes= protocol=https
2020-02-14T16:35:37.110579+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=agile-wildwood-52268.herokuapp.com request_id=4e0aeeee-f828-4f85-a18c-25d54bfe3221 fwd="88.68.64.245" dyno= connect= service= status=503 bytes= protocol=https
I don't know where this error might be caused, any help is appreciated. Thank you
So I figured out the problem.
I didn't have my environment variables set on the heroku dashboard.
If you get a similar problem follow those steps:
Go to https://dashboard.heroku.com/apps
Click on your application
Go to settings and click on "reveal config vars"
Enter all your environment variables
Hope it helps

Heroku Golang Deployment

Here is my workspace
$GOPATH/src/github.com/ulukma/weder-deploy
I have Procfile
web:weder-deploy
and also I have Godeps folder.
And I pushed my app to Heroku successfully. But when I am trying to open it I get an error
2018-09-06T22:49:31.839903+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=weaderapp.herokuapp.com request_id=64fd68c8-3012-4bc6-9a00-eedaacbb799c fwd="64.30.109.147" dyno= connect= service= status=503 bytes= protocol=https
2018-09-06T22:49:32.590403+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=weaderapp.herokuapp.com request_id=d962d485-85f9-44a7-9214-da7922495656 fwd="64.30.109.147" dyno= connect= service= status=503 bytes= protocol=https
You need to scale your app to at least one web dyno:
heroku ps:scale web=1
This will boot one dyno (container) running your weder-deploy command, allowing requests to go through that container and resolving that specific error.

Heroku Application Error - app will not deploy

I am looking to deploy my simple web application to Heroku. The build process has come back as successful, however, once I click to open the app I am getting an application error. I have pasted the log error below. I understand that it's probably something to do with NPM, but I can't decipher exactly what it's trying to tell me to do.
It is linked to the GitHub repo below.
https://github.com/KUBIX90/random-quote-machine
Thanks for your help,
2017-09-14T19:21:54.769808+00:00 app[web.1]: npm ERR! If you need help, you may report this error at:
2017-09-14T19:21:54.782902+00:00 app[web.1]:
2017-09-14T19:21:54.765726+00:00 app[web.1]: npm ERR! npm v3.10.10
2017-09-14T19:21:54.765371+00:00 app[web.1]: npm ERR! node v6.11.3
2017-09-14T19:21:54.764745+00:00 app[web.1]: npm ERR! Linux 3.13.0-128-generic
2017-09-14T19:21:54.783256+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2017-09-14T19:21:54.769914+00:00 app[web.1]: npm ERR! <https://github.com/npm/npm/issues>
2017-09-14T19:21:54.769466+00:00 app[web.1]: npm ERR! missing script: start
2017-09-14T19:21:56.053971+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=random-quote-generator-kubix90.herokuapp.com request_id=2ad5343c-8fec-405c-9def-8fbb01a09a00 fwd="31.54.253.151" dyno= connect= service= status=503 bytes= protocol=https
2017-09-14T19:23:36.975442+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=random-quote-generator-kubix90.herokuapp.com request_id=63ae20ae-4189-4693-b08e-f2e17615ab5d fwd="31.54.253.151" dyno= connect= service= status=503 bytes= protocol=https
2017-09-14T19:23:43.812544+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=random-quote-generator-kubix90.herokuapp.com request_id=a6c4a51a-01ca-49a7-860d-4ea1014b10dc fwd="31.54.253.151" dyno= connect= service= status=503 bytes= protocol=https
2017-09-14T19:25:11.887291+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=random-quote-generator-kubix90.herokuapp.com request_id=b7f15816-8a6e-484b-abc0-147cc63df0f1 fwd="31.54.253.151" dyno= connect= service= status=503 bytes= protocol=https
2017-09-14T19:30:28.059667+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=random-quote-generator-kubix90.herokuapp.com request_id=7ed95d5e-92dd-4afb-83fe-59479d6c070f fwd="31.54.253.151" dyno= connect= service= status=503 bytes= protocol=https

Resources