Hello, I’m trying to deploy an application with no brunch or HTML to Heroku, however, I’m getting this error:
remote: -----> Building dependencies
remote: Installing and caching node modules
remote: npm ERR! Linux 3.13.0-105-generic
remote: npm ERR! argv "/tmp/build_1dc1c57a9bfafccb285967da792347de/.heroku/node/bin/node" "/tmp/build_1dc1c57a9bfafccb285967da792347de/.heroku/node/bin/npm" "prune"
remote: npm ERR! node v5.3.0
remote: npm ERR! npm v3.3.12
remote: npm ERR! path /tmp/build_1dc1c57a9bfafccb285967da792347de/package.json
remote: npm ERR! code ENOENT
remote: npm ERR! errno -2
remote: npm ERR! syscall open
remote:
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_1dc1c57a9bfafccb285967da792347de/package.json'
remote: npm ERR! enoent This is most likely not a problem with npm itself
remote: npm ERR! enoent and is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! Please include the following file with any support request:
remote: npm ERR! /tmp/build_1dc1c57a9bfafccb285967da792347de/npm-debug.log
remote: ! Push rejected, failed to compile Phoenix app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to mysterious-sierra-49778.
remote:
To https://git.heroku.com/mysterious-sierra-49778.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/mysterious-sierra-49778.git'
It seems to be a problem with NPM (which I’m not using, of course), I’m following http://www.phoenixframework.org/docs/heroku
What buildpack should I use then? or how could I deploy?
Edit: I have read the buildpack github and seems like should only be used when deploying static assets, still not sure on how to deploy an API.