上载到Firebase托管无法正常工作

问题描述:

我刚刚使用AngularJS和Firebase为我的实时数据库构建了我的第一个Web应用程序.当我在localhost上运行它时,我想要它做的所有事情对我来说都很好.但是,当我将其加载到Firebase Hosting并打开并打开时,文件未正确加载.

I've just finished building my first web app using AngularJS and Firebase for my real time database. When I run it on localhost everything I want it to do is working good for me. However, when I've loaded it up to Firebase Hosting and gone and opened it, the files haven't loaded correctly.

我的CSS文件为空白,而app.js和maincontroller.js文件中都包含了我所有的index.html代码,而不是应该包含的JavaScript代码.

My CSS file is blank and both my app.js and maincontroller.js files have all of my index.html code in them instead of the JavaScript code that should be there.

这是与我的应用程序的链接,因此您可以了解我在说什么.

Here is a link to my app so you can see what I am talking about.

对于导致此问题/我做错了什么,我一直找不到任何答案.如果有人能够提供帮助,将不胜感激.

I've been unable to find any answers for what is causing this/what I'm doing wrong. If anyone is able to help it'd be greatly appreciated.

这是您的问题,来自index.html的来源:

Here's your problem, from the source of index.html:

<script src="projects/web\ design/in.out/public/app.js"></script>
<script src="projects/web\ design/in.out/public/maincontroller.js"></script>

<script>标记中需要相对于public目录时,它们具有本地路径名.这些应分别更改为/app.js/maincontroller.js.

You have local path names in your <script> tags when they need to be relative to the public directory. These should be changed to /app.js and /maincontroller.js respectively.