shihang 39dd1ea5c5 Merge branch 'master' of http://code.dashoo.cn/dashoo/labsop_base 6 年之前
..
src 39dd1ea5c5 Merge branch 'master' of http://code.dashoo.cn/dashoo/labsop_base 6 年之前
.editorconfig a00a361b72 hello labsop_base ! 7 年之前
.eslintrc.js a00a361b72 hello labsop_base ! 7 年之前
.gitignore a00a361b72 hello labsop_base ! 7 年之前
README.md a00a361b72 hello labsop_base ! 7 年之前
nuxt.config.ignore.js 0457d7815a 样本来源导出 6 年之前
nuxt.config.js ad96d4198d 样本来源保存 6 年之前
package.json f72a81c1ac json 7 年之前

README.md

shanlan

Nuxt.js project

Build Setup

# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev # Or yarn dev

# build for production and launch server
$ npm run build # Or yarn build
$ npm start # Or yarn start

# generate static project
$ npm run generate

生产环境部署(使用PM2)

# install pm2 globally
$ yarn global add pm2
# launch production server
$ yarn start:pm2
# Display all processes status
$ pm2 ls
# Show all information about app
$ pm2 show shanlan
# Display memory and cpu usage of each app
$ pm2 monit
# Display logs
$ pm2 logs
# Stop
$ pm2 stop shanlan
# Kill and delete
$ pm2 delete shanlan

For detailed explanation on how things work, checkout the Nuxt.js docs.