1.0.9 • Published 6 years ago
static-deploy v1.0.9
deploy to public static bucket
conventionally we build our production code into
dist
directory and then deploy to public clound storage for usage of CDN.
s3 deploay
In your package.json
S_DIR is optional and default
dist
{
"scripts": {
"deploy":
"S_VENDOR=s3 S_REGION=region S_BUCKET=bucket S_AK=ak S_SK=sk S_DIR=dist static-deploy"
}
}
alioss deploay
In your package.json
S_DIR is optional and default
dist
{
"scripts": {
"deploy":
"S_VENDOR=alioss S_REGION=region S_BUCKET=bucket S_AK=ak S_SK=sk S_DIR=dist static-deploy"
}
}