Giter Site home page Giter Site logo

Comments (10)

wparrkerr avatar wparrkerr commented on June 12, 2024 8

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.

jdx avatar jdx commented on June 12, 2024

does the Procfile exist in that location?

from heroku-local.

netisheth avatar netisheth commented on June 12, 2024

Yes it's there.

from heroku-local.

jdx avatar jdx commented on June 12, 2024

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.

grantathon avatar grantathon commented on June 12, 2024

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.

jdx avatar jdx commented on June 12, 2024

you're probably not in the right directory

from heroku-local.

grantathon avatar grantathon commented on June 12, 2024

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.

grantathon avatar grantathon commented on June 12, 2024

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.

WojciechThomas avatar WojciechThomas commented on June 12, 2024

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.

marokac avatar marokac commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.