We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cafe9d6 commit 8fbbb37Copy full SHA for 8fbbb37
deploy.config.json
@@ -0,0 +1,13 @@
1
+{
2
+ "apps": [
3
+ {
4
+ "name": "ssr",
5
+ "script": "./dist/server.js",
6
+ "instances": 2,
7
+ "exec_mode": "cluster",
8
+ "env": {
9
+ "NODE_PATH": "src"
10
+ }
11
12
+ ]
13
+}
package.json
@@ -168,7 +168,8 @@
168
"test": "node scripts/test.js",
169
"upload:s3": "aws s3 sync ./build s3://$S3_BUCKET --delete",
170
"upload:ssr": "aws s3 sync ./build s3://$S3_BUCKET_SSR",
171
- "download": "aws s3 cp s3://$S3_BUCKET ./build/ --recursive && aws s3 cp s3://$S3_BUCKET_SSR ./dist/ --recursive"
+ "download": "aws s3 cp s3://$S3_BUCKET ./build/ --recursive && aws s3 cp s3://$S3_BUCKET_SSR ./dist/ --recursive",
172
+ "deploy": "pm2 reload deploy.config.json"
173
},
174
"eslintConfig": {
175
"extends": [
0 commit comments