aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-11-07 01:37:04 +0800
committerGitHub <noreply@github.com>2018-11-07 01:37:04 +0800
commitce4081bb18bffb364050f04796f3174b87b7303e (patch)
treeba27607fcefd8e3e9b982c758f7b248dca175bda /packages/instant
parentb7a111366b36ff20d690f29597cb5e98f0ee5b74 (diff)
parent18d24f8db19d0216044e2069cd67f1edce9b76a9 (diff)
downloaddexon-sol-tools-ce4081bb18bffb364050f04796f3174b87b7303e.tar.gz
dexon-sol-tools-ce4081bb18bffb364050f04796f3174b87b7303e.tar.zst
dexon-sol-tools-ce4081bb18bffb364050f04796f3174b87b7303e.zip
Merge pull request #1210 from 0xProject/feature/instant/beta-bucket
[instant] Break up deploy into deploy-dogfood and deploy-staging
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/.dogfood.discharge.json (renamed from packages/instant/.discharge.json)0
-rw-r--r--packages/instant/.staging.discharge.json13
-rw-r--r--packages/instant/README.md10
-rw-r--r--packages/instant/package.json5
4 files changed, 25 insertions, 3 deletions
diff --git a/packages/instant/.discharge.json b/packages/instant/.dogfood.discharge.json
index 9ade97d01..9ade97d01 100644
--- a/packages/instant/.discharge.json
+++ b/packages/instant/.dogfood.discharge.json
diff --git a/packages/instant/.staging.discharge.json b/packages/instant/.staging.discharge.json
new file mode 100644
index 000000000..1026b9986
--- /dev/null
+++ b/packages/instant/.staging.discharge.json
@@ -0,0 +1,13 @@
+{
+ "domain": "0x-instant-staging",
+ "build_command": "yarn build:umd:prod",
+ "upload_directory": "public",
+ "index_key": "index.html",
+ "error_key": "index.html",
+ "trailing_slashes": true,
+ "cache": 3600,
+ "aws_profile": "default",
+ "aws_region": "us-east-1",
+ "cdn": false,
+ "dns_configured": true
+}
diff --git a/packages/instant/README.md b/packages/instant/README.md
index 07b01ac95..b83a10508 100644
--- a/packages/instant/README.md
+++ b/packages/instant/README.md
@@ -53,7 +53,15 @@ You can deploy a work-in-progress version of 0x Instant at http://0x-instant-dog
To build and deploy the site run
```
-yarn deploy
+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/
+
+To build and deploy to this bucket, run
+
+```
+yarn deploy_staging
```
**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.**
diff --git a/packages/instant/package.json b/packages/instant/package.json
index 81d2e4c7b..f90990649 100644
--- a/packages/instant/package.json
+++ b/packages/instant/package.json
@@ -22,7 +22,8 @@
"rebuild_and_test": "run-s clean build test",
"test:circleci": "yarn test:coverage",
"clean": "shx rm -rf lib coverage scripts",
- "deploy": "discharge deploy",
+ "deploy_dogfood": "discharge deploy -c .dogfood.discharge.json",
+ "deploy_staging": "discharge deploy -c .staging.discharge.json",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
"config": {
@@ -65,7 +66,7 @@
},
"devDependencies": {
"@0x/tslint-config": "^1.0.9",
- "@static/discharge": "^1.2.2",
+ "@static/discharge": "https://github.com/0xProject/discharge.git",
"@types/enzyme": "^3.1.14",
"@types/enzyme-adapter-react-16": "^1.0.3",
"@types/jest": "^23.3.5",