Skip to content

Commit e887dc3

Browse files
authored
Merge pull request #1 from givebest/dev
+pm2
2 parents 8d48378 + f52c228 commit e887dc3

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

admin/src/views/redirect/index.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script>
22
export default {
33
created() {
4-
const { params, query } = this.$route;
5-
const { path } = params;
6-
this.$router.replace({ path: "/" + path, query });
4+
const { params, query } = this.$route
5+
const { path } = params
6+
this.$router.replace({ path: '/' + path, query })
77
},
8-
render: function(h) {
9-
return h(); // avoid warning message
10-
}
11-
};
8+
render: function (h) {
9+
return h() // avoid warning message
10+
},
11+
}
1212
</script>

server/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ $ npm run start:dev
1919

2020
# production mode
2121
$ npm run start:prod
22+
23+
# pm2
24+
25+
npm install -g pm2
26+
27+
pm2 start npm --name server -- run start:pm2
28+
29+
pm2 restart server # restart
30+
pm2 ls # list
31+
pm2 monit # monit
32+
2233
```
2334

2435
## Test

server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"start:dev": "nest start --watch",
1414
"start:debug": "nest start --debug --watch",
1515
"start:prod": "node dist/main",
16+
"start:pm2": "node dist/main",
1617
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
1718
"test": "jest",
1819
"test:watch": "jest --watch",

0 commit comments

Comments
 (0)