当前位置:网站首页>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
边栏推荐
猜你喜欢

检测技术与原理

Type conversion in C #

基于Sentinel+Nacos 对Feign Client 动态添加默认熔断规则
![[leetcode 202] happy number](/img/b2/a4e65688aef3a0cec8088bcaba048f.jpg)
[leetcode 202] happy number

小区房价可视化
![[untitled] database - limit the number of returned rows](/img/20/9a143e6972f1ce2eed5a3d11c3a46d.png)
[untitled] database - limit the number of returned rows

Explanation of the second I interval of 2020 Niuke summer multi school training camp

Substring Inversion (Easy Version)

Integration and induction of knowledge points of automatic control principle (Han min version)

基于pygame库编写的五子棋游戏
随机推荐
数组旋转
NVIDIA Jetson: GStreamer 和 openMAX(gst-omx) 插件
爬取小米有品app商品数据
Import of data
爬虫效率提升方法
Object转Json差异之Gson fastJson jackson 修改字段名
Doomsday (simple computational geometry)
Generation of verification code
[leetcode 19] delete the penultimate node of the linked list
Rust 中的 RefCell
基于Sentinel+Nacos 对Feign Client 动态添加默认熔断规则
[leetcode 6] zigzag transformation
Rust 中的 Cell 共享可变指针
爬取彩票数据
Rust:在线程池中共享变量
GDAL+OGR学习
生成验证码
[leetcode 228] summary interval
Cf515b drazil and his happy friends
用C语言实现重写strcmp等四个函数