Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 角度发布项目网络错误_Javascript_Angular_Publish - Fatal编程技术网

Javascript 角度发布项目网络错误

Javascript 角度发布项目网络错误,javascript,angular,publish,Javascript,Angular,Publish,你好,我有一个angular 4项目,我想在我的网站上发布 我使用了这些步骤 ng构建 打开的dist文件 打开ftp服务器 我把所有的dist文件都放到了http\u文档中\ 然后我打开网站,查看这个错误 This site can’t be reached The connection was reset. Try: Checking the connection Checking the proxy and the firewall Running Network Diagnosti

你好,我有一个angular 4项目,我想在我的网站上发布

我使用了这些步骤

  • ng构建
  • 打开的dist文件
  • 打开ftp服务器
  • 我把所有的dist文件都放到了http\u文档中\
然后我打开网站,查看这个错误

This site can’t be reached
The connection was reset.
Try:

Checking the connection
Checking the proxy and the firewall
Running Network Diagnostics
ERR_CONNECTION_RESET
但如果我在当地工作,就没有问题了

您可以查看此链接neredenekadar.net

我尝试在index.html中将base href更改为''and'/my/app'和很多东西,但我做不到

如果我去neredenekadar.net/Login

我在控制台上发现了这个错误

获取网络::错误\u连接\u重置 登录:21获取网络::错误\u连接\u重置 登录:22获取网络::错误\u连接\u重置 登录:23获取网络::错误\u连接\u重置 登录:24获取网络::错误\u连接\u重置 登录:25获取网络::错误\u连接\u重置


另外,我在我的项目中使用了firebase,可能这些与firebase相关的错误我不知道,请帮助我

Change base可能会启动您的应用程序

改变

<base href="/my/app/">



从web服务器启动您的项目这意味着什么?现在您将文件作为FTP提供,但您应该使用Http提供。我如何按照您的方式执行?我们正在使用nginx web服务器托管我更改的文件,但id没有帮助
<base href="/">