lifeRestart icon indicating copy to clipboard operation
lifeRestart copied to clipboard

请问下大佬,这个咋个弄在自己服务器让自己访问呀

Open Honglixi99 opened this issue 3 years ago • 7 comments

有一个服务器,本地能运行,有大佬知道后续操作吗 /?

Honglixi99 avatar Sep 07 '21 04:09 Honglixi99

有一个服务器,本地能运行,有大佬知道后续操作吗 /?

放上去就行啊

wangyanchen avatar Sep 07 '21 06:09 wangyanchen

你在服务器上运行起来,然后通过ip访问试试

kuolemax avatar Sep 07 '21 09:09 kuolemax

#173 试试这个PR:

yarn install
yarn build

运行后直接拷贝dist目录到生产环境,入口指向:views/index.html 即可

goforu avatar Sep 07 '21 09:09 goforu

nodejs v14.17.6 版本执行 yarn build 没有生成 dist 目录

gnuos avatar Sep 07 '21 16:09 gnuos

nodejs v14.17.6 版本执行 yarn build 没有生成 dist 目录

因为该Repo还没有被po主merge,试试我主页增加了打包dist的repo

goforu avatar Sep 08 '21 02:09 goforu

nodejs v14.17.6 版本执行 yarn build 没有生成 dist 目录

因为该Repo还没有被po主merge,试试我主页增加了打包dist的repo

你那个好像还是没能解决需要访问本地硬盘数据的问题-URL scheme must be "http" or "https" for CORS request

vansAir avatar Sep 08 '21 06:09 vansAir

nodejs v14.17.6 版本执行 yarn build 没有生成 dist 目录

因为该Repo还没有被po主merge,试试我主页增加了打包dist的repo

你那个好像还是没能解决需要访问本地硬盘数据的问题-URL scheme must be "http" or "https" for CORS request

看你的报错信息,好像是要跨域访问啊,你有什么特定的需求吗

goforu avatar Sep 08 '21 10:09 goforu