Skip to content

Commit

Permalink
added webpack plugins for s3 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean committed Jul 22, 2020
1 parent 53222d6 commit 6324ccd
Show file tree
Hide file tree
Showing 5 changed files with 550 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ src/posts/**/*.md
src/pictures/vector/*.svg
src/pictures/*.png
src/pictures/*.txt
credentials.js
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,33 @@ access origin xml in the CORS configuration...
}
```

## Uploading
## Deployment

Make a directory for your blog with a `bucket` and a `posts` directory.
Add a *credentials.js* file to the root of this project that looks like:

```
module.exports = {
Bucket: 'my-bucket-name',
s3Url: 's3://my-bucket-name',
AWS_ACCESS_KEY_ID: 'my-aws-secret-key-id',
AWS_SECRET_ACCESS_KEY : 'my-aws-secret-access-key'
}
```

Then run:

```
npm run build
```

That'll build and upload the whole project to your s3 bucket.



## Uploading Blog Posts

Make a directory for your blog with a `bucket` and a `posts` directory anywhere on
your computer.

```bash
mkdir my-blog/bucket/posts
Expand Down
Loading

0 comments on commit 6324ccd

Please sign in to comment.