Comments (10)
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
oku local --help
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:
gunicorn app:app
My Incorrect Procfile was:
web gunicorn app:app
I was missing a colon after 'web', as the syntax is <process type>:<command>
. Changing the Procfile fixed the problem:
web: gunicorn app:app
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.
from heroku-local.
does the Procfile exist in that location?
from heroku-local.
Yes it's there.
from heroku-local.
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.
from heroku-local.
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'
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:491:33)
at loadEnvsFile (/snap/heroku/414/lib/node_modules/heroku-cli/node_modules/foreman/lib/envs.js:133:15)
at Array.map (native)
at loadEnvs (/snap/heroku/414/lib/node_modules/heroku-cli/node_modules/foreman/lib/envs.js:148:30)
at Command. (/snap/heroku/414/lib/node_modules/heroku-cli/node_modules/foreman/nf.js:72:16)
at Command.listener (/snap/heroku/414/lib/node_modules/heroku-cli/node_modules/commander/index.js:301:8)
at emitTwo (events.js:106:13)
at Command.emit (events.js:194:7)
at Command.parseArgs (/snap/heroku/414/lib/node_modules/heroku-cli/node_modules/commander/index.js:615:12)
Please help!
from heroku-local.
you're probably not in the right directory
from heroku-local.
I have it in the same directory level as the project and app directories where manage.py is located, which I believe is correct.
from heroku-local.
I've confirmed the same thing happens with the original heroku django template found here: https://github.com/heroku/heroku-django-template.
from heroku-local.
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:
sbt compile stage
and voila... now you can run your app locally.
from heroku-local.
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
from heroku-local.
Related Issues (20)
- SyntaxError: Unexpected token ... HOT 2
- Error downloading forego-0.16.1.exe HOT 1
- Disable output truncation HOT 3
- Gracefully stopping all workers on window resize in development HOT 2
- Document concurrency and multiple process types HOT 2
- heroku local failed HOT 3
- getting error while trying to run heroku local. HOT 2
- Console output while running locally HOT 1
- Cached node.js server files while running locally HOT 4
- Hostmapping?
- heroku local:run regression with specifying custom .env HOT 1
- Killing all processes with signal null HOT 3
- Can't kill zombie process HOT 6
- MODULE_NOT_FOUND: Cannot find module 'foreman/lib/procfile.js HOT 1
- Alias in .bashrc not working in Procfiles HOT 4
- heroku local python version HOT 8
- Blank lines are not printed
- When you do heroku local:run rails c and then press ctrl+c everything gets screwed up
- .env values result to undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-local.