NovelForge icon indicating copy to clipboard operation
NovelForge copied to clipboard

如果服务器搭建,需要改哪些东西?

Open a497799589-code opened this issue 1 year ago • 3 comments

引用了下面一个大佬改成web网页,本地部署没有问题,完美运行,但是如果我想搭建在服务器上,想在自己的手机设备也能使用这个工具该调整哪些文件呢?

a497799589-code avatar Oct 25 '25 09:10 a497799589-code

image

这是我搭建了之后进界面就提示的错误

a497799589-code avatar Oct 25 '25 09:10 a497799589-code

你尝试一下frontend/.env.example改名成.env,之后将VITE_API_BASE_URL=http://192.168.12.109:8000这个改成你的服务器IP:8000,我本地局域网部署也是这样修改的,就是不知道服务器上能不能

JunHo-php avatar Oct 27 '25 08:10 JunHo-php

你尝试一下frontend/.env.example改名成.env,之后将VITE_API_BASE_URL=http://192.168.12.109:8000这个改成你的服务器IP:8000,我本地局域网部署也是这样修改的,就是不知道服务器上能不能

换了很多方法,终于搭建成功了,其实更多的问题是在服务器部署上面,服务器有问题,安装不了vite所以卡了很多天image

a497799589-code avatar Oct 28 '25 21:10 a497799589-code