ターミナルでfirebase.jsonファイルを再度作成したい
Firebaseでウェブサイトをデプロイしようとしています。
各ツールインストール済みです。
cdでディレクトリに移動して、firebase initはうまく作動するのですが、ファイルを確認してもjsonファイルが作成されていません。
以前、1つウェブサイトをデプロイした後、他のウェブサイトをデプロイしてみようと考え、最初に作られたfirebase.jsonファイルを削除してしまったことが原因だと思っています。(無知ですみません…)
これを再度作成する方法をご教授いただけると幸いです。
ターミナルの中身(ユーザ名を~~~~にしてあります)
terminal
1~~~~~noMacBook-Pro:~ ~~~~~$ cd desktop 2~~~~~noMacBook-Pro:desktop ~~~~~$ cd tfProject 3~~~~~noMacBook-Pro:tfProject ~~~~~$ firebase init 4 5 ######## #### ######## ######## ######## ### ###### ######## 6 ## ## ## ## ## ## ## ## ## ## ## 7 ###### ## ######## ###### ######## ######### ###### ###### 8 ## ## ## ## ## ## ## ## ## ## ## 9 ## #### ## ## ######## ######## ## ## ###### ######## 10 11You're about to initialize a Firebase project in this directory: 12 13 /Users/~~~~~ 14 15Before we get started, keep in mind: 16 17 * You are initializing in an existing Firebase project directory 18 19? Which Firebase CLI features do you want to setup for this folder? Press Space 20to select features, then Enter to confirm your choices. Hosting: Configure and deploy Firebase Hosting sites 21 22=== Project Setup 23 24First, let's associate this project directory with a Firebase project. 25You can create multiple project aliases by running firebase use --add, 26but for now we'll just set up a default project. 27 28i .firebaserc already has a default project, skipping 29 30=== Hosting Setup 31 32Your public directory is the folder (relative to your project directory) that 33will contain Hosting assets to be uploaded with firebase deploy. If you 34have a build process for your assets, use your build's output directory. 35 36? What do you want to use as your public directory? public 37? Configure as a single-page app (rewrite all urls to /index.html)? No 38? File public/404.html already exists. Overwrite? No 39i Skipping write of public/404.html 40? File public/index.html already exists. Overwrite? No 41i Skipping write of public/index.html 42 43i Writing configuration info to firebase.json... 44i Writing project information to .firebaserc... 45 46✔ Firebase initialization complete! 47~~~~~noMacBook-Pro:tfProject ~~~~~$
##追記
空の別のディレクトリに
firebase init
しても、firebase.jsonがUsers/ユーザ名/の中に生成されてしまいます。
また、生成しようとしたディレクトリにはfirebase-debug.logが生成されます。
※ここのfirebase.jsonは、後でAtomエディタで作って、先程のUsers/ユーザ名/の中に出来たものをコピペしました。
自分でfirebase.jsonを作ってみても、うまくデプロイ出来ませんでした。
原因もよく分からず…
何かご存知の方は、ご教授いただけると幸いです。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/30 06:03
2018/11/30 06:28
2018/12/02 06:55