Skip to content

Commit

Permalink
feat:#1 添加pm2支持
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 29, 2022
1 parent 032b723 commit 3f6ca1c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,29 @@ Next version for jvue-front using [nuxt3](https://github.com/nuxt/framework) whi

We will start develop after Nuxt3 **stabe** release,please wait...

## build
## Install
```bash
dnf install npm
npm i -g yarn
npm i -g vercel
npm i -g pm2
```
## Init
```bash
yarn
```

## dev

```bash
vercel dev
```

## deploy
```bash
pm2 start pm2.json
```

```bash
pm2 stop pm2.json
```
11 changes: 11 additions & 0 deletions pm2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"apps": [
{
"name": "jvue-from",
"script": "yarn",
"args" : "vdev",
"instances": "max",
"exec_mode": "cluster"
}
]
}

0 comments on commit 3f6ca1c

Please sign in to comment.