Skip to content

Commit f582ea6

Browse files
committed
v2 Step 3: Run the app on the web with Zeit Now
1 parent b866e3e commit f582ea6

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

now-staging.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"alias": ["create-react-app-devops-staging"],
3+
"files": ["public", "src", "config-overrides.js", "now.json", "yarn.lock"],
4+
"env": {
5+
"NODE_ENV": "production"
6+
},
7+
"scale": {
8+
"sfo1": {
9+
"min": 1,
10+
"max": 1
11+
}
12+
}
13+
}

now.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"alias": ["create-react-app-devops"],
3+
"files": ["public", "src", "config-overrides.js", "now.json", "yarn.lock"],
4+
"env": {
5+
"NODE_ENV": "production"
6+
},
7+
"scale": {
8+
"sfo1": {
9+
"min": 1,
10+
"max": "auto"
11+
}
12+
}
13+
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
"build": "yarn build:client && yarn build:server",
1919
"build:client": "react-app-rewired build",
2020
"build:server": "babel src/server -d build/server",
21+
"deploy:random": "yarn build && now",
22+
"deploy:production": "yarn build && now && now alias",
23+
"deploy:staging": "yarn build && now -A now-staging.json && now alias -A now-staging.json",
2124
"dev": "concurrently \"yarn dev:server\" \"yarn dev:client\"",
2225
"dev:client": "react-scripts start",
2326
"dev:server": "DEV=true PORT=8081 babel-watch ./src/server/index.js",

0 commit comments

Comments
 (0)