1

not getting hosted

main directory inside public folder

I have followed every step in order to deploy the project through firebase. I have even included the copy of all the files inside public folder but I am not able to see my app getting hosted . I think I am making some mistake regarding the location of files

I was trying to host my project through heroku so I had made some changes from there like I switched the port to

app.listen(process.env.PORT || 3000, function () {
  console.log("our server is running on port 3000");
}); 

and adding a Procfile , inside which I have written

web:node app.js 

I am just a beginner to web dev , So I am unfamiliar with a alot of things , I think I have made a very silly mistake here

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Astha Negi
  • 27
  • 2
  • Firebase Hosting does not run backend JavaScript. It only serves static content. If you want to host a web project with a nodejs backend, you will need to use another product. Cloud Functions is supported. See the documentation: https://firebase.google.com/docs/hosting/functions – Doug Stevenson Jan 16 '23 at 16:50

0 Answers0