You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
## [0.2.0] -
1
+
## [0.2.0] - 2016-08-06
2
2
3
3
- Automatically detect content type of file when uploading. Stops users having to manually change mime-types for use-cases where content type is important (static websites). Issue #2
4
4
- Add option to make files publicly readable (use -public flag)
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,20 @@ It can be used for deploying [static websites hosted on S3](http://docs.aws.amaz
6
6
## Features
7
7
- Simple method to deploy git repos to S3.
8
8
- Fast uploads by only uploading new commits.
9
-
- Single binary, no [dependencies on language runtimes](https://github.com/schickling/git-s3)
9
+
- Automatically detects and sets the S3 content type of files.
10
+
- Can automatically make your files publicly available (private by default).
11
+
- Single binary, no [dependencies on language runtimes](https://github.com/schickling/git-s3).
10
12
11
13
## Installation
12
14
13
-
git-s3-push depends on [`magicmime`](https://github.com/rakyll/magicmime), which in turn depends on `libmagic`. On Arch install the `file` package, on Debian based systems you need `libmagic1` and `libmagic-devel`.
14
-
15
15
Grab a binary for your platform from the releases. Or check out the code, run `go get` and `go run git-s3-push.go`.
16
16
17
17
Git must be installed on your path.
18
18
19
+
### Dependencies
20
+
21
+
On Unix-like platforms (Linux, Mas OS, BSDs etc.) `git-s3-push` depends on [`magicmime`](https://github.com/rakyll/magicmime) for file content-type detection, which in turn depends on `libmagic`. On Arch install the `file` package, on Debian based systems you need `libmagic1` and `libmagic-devel`, on Mac OS run `brew install libmagic`. This is *not* required on Windows, which uses Golang's built-in mimetype detection.
22
+
19
23
## Usage
20
24
Authentication credentials are taken from the standard AWS environment variables. Bucket name and AWS region are supplied as arguments.
21
25
@@ -30,14 +34,14 @@ The `-save` flag stores the bucket name and region so you can push to the same l
30
34
31
35
```$ git-s3-push```
32
36
37
+
The `-public` flag can be used to make the files uploaded to your bucket publicly readable. When running without the `-public` flag, pushed files are stored privately.
38
+
33
39
All usage options can be shown using the `-help` flag.
34
40
35
41
## Config
36
42
After using the `-save` flag, `git-s3-push` creates a JSON configuration file (`.git_s3_push`) storing bucket and region information. This file also includes other configuration directives that cannot be specified using flags:
37
43
38
-
-`Ignore`: Files in the git repo that *should not* be pushed. This could include source files (for example .coffee files), or any other file in the git repository you don't want pushed to the S3 bucket. Files are specified in a JSON list of Go regexes. For example:
39
-
40
-
`"Ignore":[".*\\.coffee"]`
44
+
-`Ignore`: Files in the git repo that *should not* be pushed. This could include source files (for example .coffee files), or any other file in the git repository you don't want pushed to the S3 bucket. Files are specified in a JSON list of regexes. For example: `"Ignore":["src/*.coffee"]`
41
45
42
46
-`IncludeNonGit`: Files not tracked by git that should be pushed to the destination bucket. Files are specified in a JSON list of paths. Paths can be absolute or relative to the root of the git repository.
0 commit comments