GithubHelp home page GithubHelp logo

Comments (3)

woloski avatar woloski commented on June 8, 2024

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.

aaronfay avatar aaronfay commented on June 8, 2024

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.

aaronfay avatar aaronfay commented on June 8, 2024

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)

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.