1,在www/wwwroot创建一个文件夹如:ac
2,下载项目:https://github.com/YunYouJun/air-conditioner
3,解压
4,ssh运行下面命令
cd /www/wwwroot/ac yarn install yarn build
如果出现 yarn: command not found,安装yarn,输入命令:npm install -g yarn
5,宝塔安装PM2管理器,添加项目
保存
6,启动,监听3000端口
7,映射
8,最后域名解析到服务器ip,教程结束
项目作者:云游君
项目原地址:https://github.com/YunYouJun/air-conditioner
标签: 学习