-
Notifications
You must be signed in to change notification settings - Fork 13
why am i getting an error for heroku local web - f Procfile.windows ? #25
Comments
does the Procfile exist in that location? |
Yes it's there. |
heroku local is just a wrapper for node-foreman: https://github.com/strongloop/node-foreman maybe see if you can use node-foreman directly to rule out whether or not this is an issue with heroku local. |
I was experiencing a very similar error while trying to deploy my first app, which is written in python using the Flask framework. I got the same failure message upon running heroku local, although I had a different [WARN] message(these warnings are just warnings though and aren't crashing heroku local): [FAIL] No Procfile and no package.json file found in Current Directory - See her It turns out that I had incorrect syntax in my Procfile, and instead of saying the syntax in the Procfile was wrong, the error was just saying it can't find a procfile at all. Specifics, in case they help the command I run my app with is: My Incorrect Procfile was: I was missing a colon after 'web', as the syntax is Your situation is probably different. I would say just ensure your Procfile syntax is spot on, because apparently heroku local won't recognize the Procfile even exists if the syntax is incorrect. |
I did this and I still get the error. I've been trying to figure this out all day, but nothing. If I run "heroku local", it complains with the "[FAIL] No Procfile and no package.json file found in Current Directory - See run.js --help" error. If I run "heroku local web", it complains with this: return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); Error: EACCES: permission denied, open '.env' Please help! |
you're probably not in the right directory |
I have it in the same directory level as the project and app directories where manage.py is located, which I believe is correct. |
I've confirmed the same thing happens with the original heroku django template found here: https://github.com/heroku/heroku-django-template. |
You have not built your application locally and that is the reason you receive an error: there is no app startup script called from Procfile.windows. To resolve the problem just run: |
i made a java rest api and is hosted nicely on heroku but some of the services says application error and also slow what could be the problem |
Hi, I am new to Heroku and I just started with their first tutorial Getting Started on Heroku with Java. I could implement all the steps successfully but i can't run the app locally. The build was successful.
C:\Users\my\Documents\GitHub\java-getting-started [master ≡]> heroku local web -
f Procfile.windows
[OKAY] Loaded ENV .env File as KEY=VALUE Format
[WARN] ENOENT: no such file or directory, open 'C:\Users\my\Documents\GitHub\jav
a-getting-started\Procfile.windows'
[FAIL] No Procfile and no package.json file found in Current Directory - See her
oku local --help
Can someone please help me with it?
Thank you in advance.
The text was updated successfully, but these errors were encountered: