Application error on heroku when trying to submit my proyect - javascript

Hosted my app on Heroku, everything was going well according to a tutorial on YT but then you enter the link it says App error. I don't know what could be the problem according to the logs that appear as follows:
error1
error2
EDIT: Here are the files.
Also I forgot to mention I am new to heroku and hosting in general
package&files
config
index
when trying to start the server again it shows this about the Procfile
remote: ~Mis-cased procfile detected; ignoring.
remote: ~Rename it to Procfile to have it honored.

Related

heroku login command doesn't exist

I was trying to create an app with Heroku. Following the docs, I ran heroku login, and heroku returned the following error:
! Invalid credentials provided.
» Warning: login is not a heroku command.
Did you mean join? [y/n]:
» Error: Run heroku help for a list of available commands.
! Command failed: heroku login
My Heroku Version is heroku-cli/7.0.9 win32-x64 node-v14.11.0. Any idea why this is happening, and how I can fix it?
My solution was to instead install it from npm, and then run heroku login which works.

Node.JS: Why is my connection to localhost:3000 refused?

I'm a student going into back-end development for the first time and are trying to learn Node.JS. I downloaded a pdf book about Node.JS from sitepoint called: "Jumpstart Node.JS". In following the instructions to set up the server on the command line, install the dependencies, and navigate to localhost:3000, i got nothing except the following message: "Connection refused: localhost:3000", Can somebody please tell me what might have went wrong and how to fix it?
Edit1:
The instructions i followed is about setting up a node.js server using the Node command line, thus no code, simply cmd commands, however, here is a quick summary of the process i followed:
Created an account on MongoLabs and then a database using the free pricing plan.
Installed express using the command: npm install -g express#.2.5.8.
Created an applications with default options using this command: express authentication.
modified the package.json file in system32
installed the dependencies by typing cd authentication, hitting enter, and then typing the command: npm install
Typed node app and hit enter.
According to the instructions i should have seen a message: "Welcome to express" but instead got the error message.
In following the instructions to set up the server on the command line, install the dependencies, and navigate to localhost:3000
It seems that you didn't start the server.
Somewhere between installing the dependencies and navigating to the URL you need to actually start the server if you want it to serve the request.
Check that there is no copy of the server running in the background, or that another app is using the port currently.
(Your firewall show allow you to see which app has been allocated to that port)
Because nodejs requires it to be the only app on that port running on your computer.
Also try a different port maybe?

Mean app login not working on heroku

I have followed many tutorials on how to get mongodb and MEAN to work on heroku, and none of them have worked for me, I keep getting the 503 application error.
First I create the app, I do heroku addons:docs mongolab in the commandline, and after that I check my config and change my code so the mongoose connection is changed to the config string like this:
mongoose.connect(process.env.MONGOLAB_URI || mongodb://example:example#ds053312.mongolab.com:53312/todolist');
the second part is just an example, the one I use is the one with my information.
So after this I push my app to heroku, but when I try to run it, it still gives me the application error, and in f12 it says it's
Failed to load resource: the server responded with a status of 503
(Service Unavailable)
https://myapp.herokuapp.com/favicon.ico
What am I doing wrong? I have tried everything and none of the tutorials are working for me
EDIT: I have managed to get rid of the error by doing the following:
$ git init
$ git add .
$ git commit -m "initial version"
$ heroku apps:create
however, now that my app loads, it appears that the login and sign up features of my app doesn't work, I fill out the sign in/log in form and submit but the page just stays where it is without changing. Is there something else I was supposed to do to get these features to work?
I came here because my Heroku - deploy Login wasn't working, but Localhost was. Turns out I forgot to change the Login POST route.

build error while deploying a html application in heroku

I have uploaded a html application in github but while trying to deploy it in heroku I am getting this error:
No default language could be detected for this app.
HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
See https://devcenter.heroku.com/articles/buildpacks
! Push failed
Set this buildpack https://github.com/heroku/heroku-buildpack-static
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-static.git

Issue deploying app to Heroku from cloud 9

I have an app on cloud 9 IDE, it works perfectly on cloud 9 when I run nodemon server.js but when I deploy it to Heroku it gives an application error.
How I am deploying it to git:
Login into Heroku and create an app online
Then in cloud 9 terminal I type heroku login and then type in my details
Then I type git init
Then heroku git:remote -a agile-stream-37163
Then git add .
Then git commit -am "initial commit"
Then git push heroku master
It deploys successfully but when I actually go to the app url it comes up with application error. I think I am deploying it wrong, I don't have much experience with git.
Heres an image from my cloud 9 terminal:
Can anyone please tell me how I can fix this.

Categories

Resources