Giter Club home page Giter Club logo

Comments (11)

baifagg avatar baifagg commented on June 3, 2024 1

平时只能用0.0.0.0,阿里云能把127.0.0.1映射出来我没想到。总之先不纠结这个,我看这个前端就是一个静态页面吧, 总不能是网不好/带宽低吧...

不会是这些原因,我部署的sd是可以正常使用的。我感觉就是网页文件有问题,没有正常安装或者加载。但是sd又可以正常使用的。我还是使用命令行吧,毕竟是云端,排错不容易

from lora-scripts.

baifagg avatar baifagg commented on June 3, 2024

image

from lora-scripts.

martellz avatar martellz commented on June 3, 2024

首先127.0.0.1是环回地址,访问不到云服务器的捏。
其次网页(居然还能)显示一个大大的图标,是不是你本地也启了服务?
服务器先老老实实用命令行叭。

from lora-scripts.

baifagg avatar baifagg commented on June 3, 2024

点击环回地址阿里云会把这个地址转换成公网可访问的地址。主要是这个界面太绷不住了。而且命令行我也运行失败了,我下午贴一下报错

from lora-scripts.

martellz avatar martellz commented on June 3, 2024

点击环回地址阿里云会把这个地址转换成公网可访问的地址。主要是这个界面太绷不住了。而且命令行我也运行失败了,我下午贴一下报错

“点击环回地址阿里云会把这个地址转换成公网可访问的地址”
这个是怎么做到的QAQ

from lora-scripts.

baifagg avatar baifagg commented on June 3, 2024

就是将7860这个端口映射出来吧 ,这我也不知道啊,但我平时在自己电脑上部署的应用,防火墙开放端口之后,使用我家的公网地址加对应端口也是可以访问的

from lora-scripts.

martellz avatar martellz commented on June 3, 2024

平时只能用0.0.0.0,阿里云能把127.0.0.1映射出来我没想到。总之先不纠结这个,我看这个前端就是一个静态页面吧,
总不能是网不好/带宽低吧...

from lora-scripts.

Akegarasu avatar Akegarasu commented on June 3, 2024

无法复现。出现这种情况应该是你的网页没有加载完全,请抓包查看是否有无法加载的部分。

from lora-scripts.

Xibai-Sike avatar Xibai-Sike commented on June 3, 2024

阿里云 dsw 对 127.0.0.1, 0.0.0.0等本地ip有特殊处理。

  1. 点击terminal 中的 http://127.0.0.1:8080, 新标签页打开 https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-{id}/proxy/8080/
  2. 很多 web app 里 link resource(css, js, png etc..) , link url 如果以/ 为前缀, 这样就请求不到资源。阿里云通过注入/proxyAssets.js 解决了部分的问题。

这种情况应该是 web app 里的静态资源路径不对

from lora-scripts.

dorado-lmz avatar dorado-lmz commented on June 3, 2024

@Akegarasu 大佬,frontend 项目中的 html 对静态资源的引用使用绝对路径,而阿里云只支持相对路径,因此页面加载不了。能不能把 fontend的 publicPath 改成 './'

image

from lora-scripts.

Akegarasu avatar Akegarasu commented on June 3, 2024

fixed

from lora-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.