tonycoco / heroku-buildpack-ember-cli

A Heroku Buildpack for Ember CLI Applications
MIT License
321 stars 121 forks source link

ember: not found #106

Closed benbabics closed 8 years ago

benbabics commented 8 years ago

This is my first ember-cli project I'm deploying to Heroku and am completely new to the concept of buildpacks, so please forgive me as I'm likely overlooking something. I'll spell out what I'm doing because this may not be related to the buildpack at all; I'd rather be exhaustive and have someone possibly point that out.

I am using the Heroku Pipeline for staging and production environments, and have connected my app to GitHub for deployment.

Locally I have added the remote: $ heroku git:remote -a <heroku app name>

Then I went through the steps listed in this README: $ heroku create --buildpack https://github.com/tonycoco/heroku-buildpack-ember-cli.git $ heroku config:set REBUILD_ALL=true $ heroku plugins:install https://github.com/heroku/heroku-repo.git $ heroku repo:purge_cache -a <heroku app name> $ git push heroku master

Looking at my log: $ heroku logs -t

I see the following:

2015-10-02T14:04:16.569937+00:00 heroku[api]: Deploy 8fda1cb by ...
2015-10-02T14:04:16.569937+00:00 heroku[api]: Release v5 created by ...
2015-10-02T14:04:16.689982+00:00 heroku[web.1]: State changed from crashed to starting
2015-10-02T14:04:18.505593+00:00 heroku[web.1]: Starting process with command `npm start`
2015-10-02T14:04:20.767512+00:00 app[web.1]:
2015-10-02T14:04:20.767540+00:00 app[web.1]: > fido@0.0.0 start /app
2015-10-02T14:04:20.767544+00:00 app[web.1]: > ember server
2015-10-02T14:04:20.767546+00:00 app[web.1]:
2015-10-02T14:04:20.788671+00:00 app[web.1]: sh: 1: ember: not found
2015-10-02T14:04:20.801354+00:00 app[web.1]: npm ERR! Linux 3.13.0-61-generic
2015-10-02T14:04:20.811881+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2015-10-02T14:04:20.812061+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2015-10-02T14:04:20.795658+00:00 app[web.1]:
2015-10-02T14:04:20.801776+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2015-10-02T14:04:20.801976+00:00 app[web.1]: npm ERR! node v4.1.1
2015-10-02T14:04:20.802830+00:00 app[web.1]: npm ERR! npm  v2.14.4
2015-10-02T14:04:20.803004+00:00 app[web.1]: npm ERR! file sh
2015-10-02T14:04:20.803196+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2015-10-02T14:04:20.803360+00:00 app[web.1]: npm ERR! errno ENOENT
2015-10-02T14:04:20.803532+00:00 app[web.1]: npm ERR! syscall spawn
2015-10-02T14:04:20.803693+00:00 app[web.1]: npm ERR! fido@0.0.0 start: `ember server`
2015-10-02T14:04:20.803829+00:00 app[web.1]: npm ERR! spawn ENOENT
2015-10-02T14:04:20.803980+00:00 app[web.1]: npm ERR!
2015-10-02T14:04:20.804127+00:00 app[web.1]: npm ERR! Failed at the fido@0.0.0 start script 'ember server'.
2015-10-02T14:04:20.804282+00:00 app[web.1]: npm ERR! This is most likely a problem with the fido package,
2015-10-02T14:04:20.804510+00:00 app[web.1]: npm ERR! not with npm itself.
2015-10-02T14:04:20.804909+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2015-10-02T14:04:20.805127+00:00 app[web.1]: npm ERR!     ember server
2015-10-02T14:04:20.805589+00:00 app[web.1]: npm ERR! You can get their info via:
2015-10-02T14:04:20.805810+00:00 app[web.1]: npm ERR!     npm owner ls fido
2015-10-02T14:04:20.806030+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2015-10-02T14:04:20.811601+00:00 app[web.1]:
2015-10-02T14:04:21.728041+00:00 heroku[web.1]: State changed from starting to crashed
2015-10-02T14:04:21.711633+00:00 heroku[web.1]: Process exited with status 1

Thanks for looking at this, and in advance for any insight you can provide. :smile:

tonycoco commented 8 years ago

Can you make sure your project builds locally?

https://github.com/tonycoco/heroku-buildpack-ember-cli#troubleshooting

benbabics commented 8 years ago

Omg.. I'm a dope. The buildback creates a new Heroku app which is what I need to deploy to. I'm sure others knew this, but I missed it. derp :open_mouth: