我正在尝试使用以下命令将我的站点部署到Firebase主机上(见下文)。它过去正常工作,但在今天更改项目文件夹之后,它只部署了一个文件(见图),站点就不能工作了。在运行firebase init并选择no到configure as a single-page-app (reqrite all urls to /index.html)之后,它现在正在将2个文件部署到Firebase主机(我的公用文件夹中现在有2个文件: index.html和404.html)。如何将所有17个文件重新部署到Firebase主机?
我正在使用的命令:
ng build --prod
firebase init
firebase deploy
发布于 2018-07-23 08:36:40
我终于得到了它的部署后:
1)运行firebase init并将公共目录设置为dist
2)运行ng build --prod。这在dist文件夹中创建了一个名为“hmn2”的文件夹(我的项目名)。
3)复制hmn2文件夹中的所有内容,并将它们粘贴到一个目录之外,因此它们直接位于dist文件夹下。我还删除了'hmn‘文件夹。
我不知道为什么现在要把它们放到另一个文件夹中(升级到角形6)。它以前没这么做过。
发布于 2019-01-28 15:11:55
我和Ionic有同样的问题,只是下面的问题需要正确地回答。
? What do you want to use as your public directory? www
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
? File www/index.html already exists. Overwrite? No
i Skipping write of www/index.htmlhttps://stackoverflow.com/questions/51473118
复制相似问题