heroku angular deployment cannot find dist/app-name/index.html - node.js

So I'm trying to deploy an angular 6 app on heroku, and I followed these steps:
this and this.
According to the heroku deployment logs, it says the build was successful. But when I try to access, the web page only returns Not found.
When I checked heroku logs, this was the result:
I'm pretty sure I followed all the steps correctly. So what am I doing wrong/missing here?

Related

Heroku server error 503 in nodejs express api

When I run my nodeJs API on localhost is works perfect but when in uploaded it on server (Heroku) then it gives server 503 error.
Without knowing more about the project, my first guess is something that I ran into just yesterday, where Environment Variables hadn't been declared within Heroku > App > Settings > Config Vars, but were properly in place in the dev environment in the .env file (which should never, ever, ever be pushed to any repository, just so you're aware).
If you could run heroku logs --tail in your CLI and paste in the log for that app, it could help clarify exactly what's happening.

Meteor deploy on Heroku Error deploying Node

I built a Meteor app, and it runs on my local machine, where I have meteor installed.
I have never deployed an app online, and am trying to put the app on heroku.
I first tried to use buildpack/jordansissel/heroku-buildpack-meteor.git, but I got an error "Meteor requires Node v0.10.41 or later"
I then tried to use buildpack/michaltakac/meteor-buildpack-horse.git but it failed to push because it couldn't unpack Node.
Lastly I've tried kevinseguin/heroku-buildpack-meteor.git but I get lots of warnings about npm depricated http://prntscr.com/bewzak
When I look at the logs it says "Slug compilation failed: failed to compile Node.js app"
I also get Error: MONGO_URL must be set in environment
I don't know enough to understand what the errors are, or how to get my app deployed
Image of errors: http://prntscr.com/bex0av
my goal it to get the site on gr-fireworks.herokuapp.com
I contacted Heroku helpdesk and they said they couldn't help me because the issue was outside the scope of Heroku Support.
I tried to reach out to Snap CI who said they were successful in deploying it, but when I try to type in exactly what they did, I am still getting the error about Node https://snap-ci.com/ankitsri11/Fireworks/branch/master/logs/defaultPipeline/1/Heroku?back_to=build_history
My repository I'm trying to deloy is on git at github.com/jschwarzwalder/Fireworks
From description of your problem I can conclude you need to do 2 things on your app's Heroku dashboard (Settings tab):
Add MONGO_URL environment variable that points to your Mongo DB database. You can create mongo instance on external service or use mLab Heroku addon (it has free plan).
So your environment variables may look like:
Also, you may need to add METER_SETTINGS if you use --settings settings.json and ROOT_URL - URL of you app gr-fireworks.herokuapp.com (is required).
Set this buildpack:
Ensure you have .git at the end of url.
Now you can deploy your app using single command (if you setup Heroku Toolbelt and heroku remote points Heroku's app repository):
$ git push heroku master

Heroku - Node.js application deployed successfully, heroku local fails

I have a MEAN stack app which has been successfully deployed to heroku. Everything works great using the heroku hosted version of my application.
For some reason, when I run my app using "heroku local" it fires up and appears to be working correctly but I can't access any of my endpoints.
Postman gives me the following error instantly "Could not get any response". I am also at a loss for where to even begin troubleshooting this problem, even running the application using "node app.js" gives me the same error. This did not happen prior to deploying to heroku!
Some files I have added are 'Procfile'
web: node app.js
Am I missing something here?
Another thing I have added is the MongoLab addon, to isolate and see if this was the issue I created a test endpoint at "http://localhost:8080/api/test" but it doesnt even respond with the simple "message: 'Success!'" json response.

Heroku deploy notworking

I am having problems with my initial app deployment on Heroku. I've been through both the info in the dev center and Getting Started with Node.js on Heroku. While typing 'heroku open' within the dist directory I get a page that pops up in my browser with the message: Heroku | Welcome to your new app Refer to the documentation if you need help deploying.
Why isn't my site popping up?

How to get logs for Application Error on Heroku

I have been trying to redeploy my app hosted on Heroku.
On every redeploy i was getting "Your app was successfully deployed."
But on opening the page i was getting:
An error occurred in the application and your page could not be served.
Please try again in a few moments.
If you are the application owner, check your logs for details.
On opening the logs under the 'Activity' tag gave me logs but it had nothing about what went wrong.
How would one get to know whats causing application error.
We could get the logs for Heroku easily from heroku shell. To get 'heroku shell' on you computer, install heroku toolbelt.
One installed, from 'cmd' login to heroku:
heroku login
Then you could get the logs:
heroku logs --app APPNAME
This works irrespective of whether you use git, github or dropbox.

Resources