Git Product home page Git Product logo

git-s3-push's People

Contributors

bobbo avatar dmfutcher avatar sleepypikachu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git-s3-push's Issues

how to specify profile?

I was trying to use, but need to specify a specific profile with a token (mfa). Any plans for support on this?

Release for Mac OS High Sierra

Current release breaks on High Sierra. I did a manual rebuild and it works. So a new download for High Sierra would be great.

Building: fatal error: 'magic.h' file not found

The magicmime dependency needs the header files from libmagic to build. I fixed this on my environment by installing libmagic with my package manager.

Seems like this is probably just something we need developers to do as a manual step (can't imagine the go tooling is going to install this for us) so I propose splitting out the existing build instructions in Installation into a new section which also includes this requirement.

Happy to submit a PR for this if you agree with the approach!

Should ignore .git-s3-push file by default

Trying out git-s3-push for a personal Jekyll site on S3. Tool works fine (thanks!) but the sidecar file that stores the settings gets uploaded to s3 along with the content. Suggest that this file is ignored by default.

Path prefix for bucket key

Add an option to specify a path prefix for the bucket key ie. allow pushing git repos into sub-folders of S3 buckets. This would allow, for example, storage of multiple git repos in a single S3 bucket.

Push to S3 does not include commits of deleted files

Should update the git-s3-push command to check for deleted files and delete those files in s3. Currently the git-s3-push command does not have a delete functionality when a commit includes deletion of files.

Mimetypes

CSS gets set to mimetype text/plain instead of text/css which screws up the browser. Is there any way to change this behavior or is this a code issue? I'm guessing this is something coming from libmagic so maybe there is configuration I can do?

Testing suite

There are currently 0 (zero) tests for git-s3-push.

Would be great to add:

  • Unit testing for whichever chunks of code make sense to unit test
  • End-to-end test to run git-s3-push against some example git repos and check the correct files end up in a test S3 bucket.

Use custom git protocol instead of making a separate tool

Hi, @bobbo!

Just wanted to ask you, did you consider to use custom git protocol (e.g. git-remote-<name>) instead of making a separate tool for the task? It looks for me that it might provide much better user experience.

What I'm thinking now is something like:

% git add remote production s3://<region>/<my-bucket-name>
... write some code, as usual
% git commit -a -m 'release'
% git push production

What this particular push call should do is to invoke

% git-remote-s3 production s3://<region>/<my-bucket-name>

so git-remote-s3 (former git-s3-push) could parse region and bucket from the passed "url" and deploy the code.

Does this kind of tool look like the one that makes sense? What do you think?

See this post https://rovaughn.github.io/2015-2-9.html with some additional explanation about custom protocols in git.

Filetype of upload

I find that git-s3-push works well except that my html, css and js files are given the filetype binary/octet-stream. This means that I have to instruct AWS to change the filetype so that my website can be served properly :-(

OS X Dependency requirement

Hi there,

looks like it still requires a dependency - libmagic

$ ./git-s3-push
dyld: Library not loaded: /usr/local/opt/libmagic/lib/libmagic.1.dylib

$ brew install libmagic
==> Downloading https://homebrew.bintray.com/bottles/libmagic-5.30.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libmagic-5.30.sierra.bottle.tar.gz
==> Using the sandbox

$ ./git-s3-push --help
stat /Users/XXXX/.git: no such file or directory

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.