Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.55 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.55 KB

s3-deploy

Yeet your static site to the cloud

∫ s3-deploy help
s3-deploy 1.1
olmigs <migs@mdguerrero.com>
Deploy your static site to AWS S3

USAGE:
    s3-deploy <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    help        Print this message or the help of the given subcommand(s)
    modified    Print recently modified files (< 24 hrs) in <PROJECT>
    print       Print objects in <BUCKET>
    upload      Deploy <FILE> to <BUCKET>
    yolo        Deploy recently modified files in <PROJECT> to <BUCKET>

For a more philosophical dissection of a deployment workflow with this tool, see this blog post.

Requirements

Any static assets you wish to deploy from a root directory e.g. project must

  1. live in project/public, and
  2. be specified in an array in project/out/public.json.

s3-deploy assumes you have AWS access keys available in your environment. See Getting started.

Usage

∫ s3-deploy modified -p /Local/static/assets

2 files modified recently:
   build/bundle.js
   index.html
∫ s3-deploy yolo -b example.com -p /Local/static/assets -s app

Upload success for app/build/bundle.js
   Entity tag "<REDACTED>"
Upload success for app/index.html
   Entity tag "<REDACTED>"

Notices

  • Commands::Delete is unimplemented

Feel free to raise an issue for any of these, or other, concerns.