tg marcus
tg marcus

Reputation: 167

Updating deployment

I recently deployed a nodejs API through Heroku. I want to update the new changes to the deployment but whenever I push (git push Heroku master) I receive an error.

Error: ENOENT: no such file or directory, scandir '/app/seeds'

This started behaving this way after I ran npm install pg

Upvotes: 0

Views: 62

Answers (1)

Ashish Bhardwaj
Ashish Bhardwaj

Reputation: 158

While deploying the changes to Heroku it is unable to find /app/seeds directory and so it will not be able to be pushed to Heroku and this is what causes a problem.

Maybe some of your files do have got deleted. So here what you can do is delete your node_modules folder and just run the command npm install so all your packages should be having completed files and then do git push heroku master.

I also faced a similar issue and it resolved my problem. So can you please give it a try.

Upvotes: 1

Related Questions