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?
Related
I've been trying to deploy a node-express app in Heroku. I've created the app in Heroku, and try to open the app link which created at the end of the deployment. But it showing application error.
screenshot of the error I got while running the app address
I think the error should be in the main route code.
Error status when I ran the Heroku logs --tail.
Anyone gone through this earlier, help me to figure it out and resolve this issue.
Thanks in advance.
When I run the command Heroku open in Git, Heroku will serve the Login page only and won't allow the "Login With Spotify" button to route to the Spotify Oauth page onClick.
I also get the error "xhr.js:178 GET http://localhost:3000/auth/spotify net::ERR_CONNECTION_REFUSED in the developer console.
The app only works locally when I run nodemon server to start the Node.js side(http://localhost:3000) and yarn start on the React client-side(http://localhost:3001). If those two servers aren't running Heroku will not properly deploy my app.
Application view after Heroku open is executed through Git
Developer console error that occurs onClick to the "Login With Spotify" button without the servers running on Heroku open
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?
I am trying to host my Express JS app on Heroku, I have uploaded it on my gitHub repo and associated it with my heroku account. I created the Procfile with content
web: node app.js
But when I go to my application link on Heroku it gives Application Error.
What I am doing wrong? Do I need to give my index.js instead of app.js?
I upgraded my git to 2.3.0 and now the logs are coming in. It seems the issue was that no web dynos were running.
I went in my terminal and did
heroku logs --app myappname
heroku ps:scale web=1 --app myappname
and now the application is working
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.