From 8b05db35104bf6853bdec81b2a1f25b16914608f Mon Sep 17 00:00:00 2001 From: fragosti Date: Wed, 28 Nov 2018 11:07:32 -0800 Subject: feat: add deploy_live command --- packages/instant/.production.discharge.json | 13 +++++++++++++ packages/instant/README.md | 14 +++++++++++--- packages/instant/package.json | 1 + 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 packages/instant/.production.discharge.json diff --git a/packages/instant/.production.discharge.json b/packages/instant/.production.discharge.json new file mode 100644 index 000000000..447fa1756 --- /dev/null +++ b/packages/instant/.production.discharge.json @@ -0,0 +1,13 @@ +{ + "domain": "instant.0xproject.com", + "build_command": "yarn build", + "upload_directory": "umd", + "index_key": "instant.js", + "error_key": "404.html", + "trailing_slashes": true, + "cache": 3600, + "aws_profile": "default", + "aws_region": "us-east-1", + "cdn": true, + "dns_configured": true +} diff --git a/packages/instant/README.md b/packages/instant/README.md index fd94d37d1..0fb4dfe62 100644 --- a/packages/instant/README.md +++ b/packages/instant/README.md @@ -22,20 +22,28 @@ The package is available as a UMD module named `zeroExInstant`. You can deploy a work-in-progress version of 0x Instant at http://0x-instant-dogfood.s3-website-us-east-1.amazonaws.com for easy sharing. -To build and deploy the site run +To build and deploy the bundle run ``` yarn deploy_dogfood ``` -We also have a staging bucket that is to be updated less frequently can be used to share instant externally: http://0x-instant-staging.s3-website-us-east-1.amazonaws.com/ +We also have a staging bucket that is to be updated less frequently can be used to share a beta version of instant externally: http://0x-instant-staging.s3-website-us-east-1.amazonaws.com/ -To build and deploy to this bucket, run +To build and deploy to this bundle, run ``` yarn deploy_staging ``` +Finally, we have our live production bundle that is only meant to be updated with stable, polished releases. + +To build and deploy to this bundle, run + +``` +yarn deploy_live +``` + **NOTE: On deploying the site, it will say the site is available at a non-existent URL. Please ignore and use the (now updated) URL above.** ## Contributing diff --git a/packages/instant/package.json b/packages/instant/package.json index af23af3b9..427d5984e 100644 --- a/packages/instant/package.json +++ b/packages/instant/package.json @@ -20,6 +20,7 @@ "clean": "shx rm -rf lib coverage scripts", "deploy_dogfood": "discharge deploy -c .dogfood.discharge.json", "deploy_staging": "discharge deploy -c .staging.discharge.json", + "deploy_live": "discharge deploy -c .production.discharge.json", "manual:postpublish": "yarn build; node ./scripts/postpublish.js" }, "config": { -- cgit v1.2.3