Search code examples
node.jsherokudeploymentenoent

Heroku Error: ENOENT: no such file or directory, stat '/app/index.html'


I deployed my nodejs app to Heroku My project folder structure is as below folder structure

Server.js

Server.js code

After deployment I am getting above error as no such file or directory /app/index.html

I tried running run bash command to check folder structure on Heroku but it doesnt show me app folder at root path

Heroku run bash output

wondering why I can't see app folder above where it is coming from?

Appreciate your help.


Solution

  • Your index.html has a caps, you called it Index.html.

    If you are using windows just notice you might have to delete Index.html, then push your project without it, then push it again with your file correctly named (index.html).

    You are not seeing app/ because you are inside of it.