当前位置:网站首页>PM2 deploy nuxt project
PM2 deploy nuxt project
2022-04-23 06:34:00 【xingsfdz】
1. Cloning code
2.vscode Open the project And install
yarn
3. Compile package build .nuxt Catalog ( Subsequent upgrade Just replace the directory )
yarn build
perhaps
npm run build
4. Login pagoda installation pm2
5. Enter into nginx The root directory
cd /www/server/nginx/html
6. Upload the directory and files to the server
7. Installation dependency
npm install
perhaps
yarn
8. Start project
# ouyang Name the project
pm2 start npm --name "ouyang" -- run start
as follows Identify successful startup
9.ip: port Visit
10.pm2 Common commands
pm2 list -- A list of items
pm2 kill -- End all pm2 project
pm2 start npm --name " Project name " -- run start -- Start project
版权声明
本文为[xingsfdz]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210614266939.html
边栏推荐
猜你喜欢
随机推荐
Cf1427c the hard work of paparazzi
根据SQL语句查询出的结果集,将其封装为json
Usage scenario of copyonwritearraylist
Motor and drive (Qi Jinqing Edition)
大学概率论与数理统计知识点详细整理
用C语言实现重写strcmp等四个函数
Feign请求日志统一打印
Generation of verification code
SQL -- data definition
Formation à la programmation
gst-launch-1.0用法小记
爬虫之requests基本用法
Animation - Introduction to keyframes
jenkspy包安装
数组旋转
P1586 solution to tetragonal theorem
Robocode教程3——Robo机器剖析
进程间通信的方式
-- SQL query and return limit rows
爬虫效率提升方法