Firebase没有运行index.html文件 [英] Firebase not running index.html file
问题描述
我在正确的目录中,我的控制台显示服务器正在监听: HTTP://本地主机:5000 。但是,在localhost 5000中,它显示了一个通用的欢迎使用Firebase主机:您已经看到了这一点,因为您已经成功设置了Firebase主机,现在是时候去创造一些非凡的东西了!而不是index.html文件中的应用程序界面代码。这是我的目录中唯一的html文件。这似乎是我失去了一些非常简单的东西。感谢您的帮助。
我想出了我的答案。正在发布的index.html文件位于公开文件中,该文件是在firebase init阶段创建的。我把那个占位符html文件替换为我的应用程序的一个。
I'm a pretty new programmer going through the Firebase tutorial. I have gone through steps 1-5 of the tutorial (https://codelabs.developers.google.com/codelabs/firebase-web/#5). I've added the "Add Firebase to your web app" js code to the html file, and set up the Firebase CLI. However, when I run the firebase server, everything seems to work other than it is not showing the code from the index.html file.
I am in the right directory, and my console says "Server listening at: http://localhost:5000." But, at localhost 5000, it shows a generic "Welcome to Firebase Hosting: You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!" box rather than the app interface code in the index.html file. It is the only html file in my directory. It seems like I am missing something very simple. Thank you for your help.
I figured out my answer. The index.html file that was being posted was in the "public" file, which was created during the "firebase init" stage. I replaced that placeholder html file with the one for my app.
这篇关于Firebase没有运行index.html文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!