Comments (3)
to workaround you could execute spawn a child process and execute git pack-refs before the sever starts.
I'm wondering how you are running it in ec2? do you expose the repo and push there? how you do that?
I'm running it in Windows Azure and I had to setup a bare repo on startup and create a post-hook on github pointing to my blog to trigger a fetch to update. Am I missing something?
from wheat.
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
I take back my comment, the issue on Heroku seems to be more complex, as the dyno /app folder is not the 'gitFolder' git-fs is expecting, so a few files are missing, as well as related repo information. At this point I'm not sure there's an easy fix for this, as Heroku's deployment seems to obscure the actual cloned repository. Restarts also appear to wipe out any files written to the app folder as well.
from wheat.
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.
from wheat.
Related Issues (20)
- Installation is broken & dependencies are out of date HOT 2
- Interpret strings in haml as binary strings is not friendly for UTF8 HOT 1
- Error in prettify.js - Cannot set property console of #<Object> which has only a getter HOT 2
- Issues with `v0.4.0` Node... HOT 1
- Multiple repository and domain support
- Articles randomly return "undefined" to browser HOT 2
- Should wheat use native git bindings instead of a child process?
- read file in UTF8 HOT 2
- git-fs 0.0.7 breaks wheat HOT 2
- Problem with Node 0.6? HOT 4
- RSS Support HOT 1
- Not compatible with Node 0.6.10
- UTF-8 file name HOT 1
- Image galleries? HOT 1
- Documentation?
- how to show all files' list
- create npm package HOT 1
- Simple tag/category support HOT 2
- nightmarish install process HOT 1
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 wheat.