项目地址:gitee.com/gengyanan/d… 第一步:使用 npm run generate,进行对nuxt项目打包,生成dist文件
第三步:开启服务器,我到我的目录source目录下 ssh root@xxx.xxx.xxx password:123
第四步:创建好一下文件,并将dist文件一起放入服务器上
第五步:在source目录上查看是否有static文件,并查看文件中是否添加了本地文件到服务器上
第六步:docker-compose down 先暂停所有服务,然后启动docker-compose up 启动本项目, 以上显示成功登录并启动服务器 http://39.99.210.170:8091/