-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENOENT error on both nodester and heroku #39
Comments
to workaround you could execute spawn a child process and execute git pack-refs before the sever starts. |
I believe this issue is related to creationix/node-git#6, although the pull request hasn't been accepted yet. I'm experiencing the exact error deploying to Heroku. EDIT |
After a little more research, it appears this issue cannot be fixed. The actual files deployed on a Heroku dyno instance are only the project files without the .git folder. A wheat dependency (git-fs) is expecting to find the .git repo in place so it can read shasums (see https://github.com/creationix/node-git/blob/master/lib/git-fs.js#L115). At this point 'gitDir' is the project directory, and neither the 'packed-refs' or 'HEAD' files exist. Even if they did, they wouldn't have the proper content, I suspect. |
Missing packed-refs in both cases.
Wheat works on my local machine.
Did get it to work on ec2, after doing a git pack-refs.
heroku logs
2011-11-23T02:59:24+00:00 app[web.1]: /app/node_modules/wheat/lib/wheat.js:75
2011-11-23T02:59:24+00:00 app[web.1]: if (err) { throw err; }
2011-11-23T02:59:24+00:00 app[web.1]: ^
2011-11-23T02:59:24+00:00 app[web.1]: Error: ENOENT, No such file or directory '/app/packed-refs'
The text was updated successfully, but these errors were encountered: