简体   繁体   English

MacOS X - 更改本地Firebase部署目录

[英]MacOS X - Change local Firebase deploy directory

How can we change the directory Firebase deploys to for a specific project? 我们如何更改Firebase为特定项目部署的目录?

I want to be able to deploy multiple Firebase projects to different directories. 我希望能够将多个Firebase项目部署到不同的目录。 Is this possible? 这可能吗? Couldn't find any references in the documentation. 在文档中找不到任何引用。

You can determine what directory the Firebase CLI deploys to Firebase Hosting by changing the public property in the firebase.json file in that directory. 您可以通过更改该目录中firebase.json文件中的public属性来确定Firebase CLI部署到Firebase Hosting的目录。

See the Firebase Hosting reference docs : 请参阅Firebase托管参考文档

 "public": "app" 

required - The public setting tells the firebase command which directory to upload to Firebase Hosting. required - public设置告诉firebase命令将哪个目录上载到Firebase Hosting。 This directory must be inside the project directory and must exist. 该目录必须位于项目目录中且必须存在。 The default value is a directory named "public" 默认值是名为“public”的目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM