Reputation: 73
I created a new empty app on firebase and now I am trying to initialize it. When I run the firebase init command from the directory containing my angularjs app I do not see the new app on firebase with the arrows. Just an old app and selections to create a new app or "not set up a default app". This used to be easy as I set up 3 other apps before the new CLI How do I associate the app on my windows directory with the new app just created in firebase?
Upvotes: 2
Views: 7581
Reputation: 1
Some times our system do not give these type of major execution permission to third part software like sublime,vs Code etc.. and firebase need some changes in our system you can solve this by running these commands in your powersell, make sure that you are running these commands as administrator.
Upvotes: 0
Reputation: 1
I reviewed my folder and the CLI of firebase was creating the files outside the project route, I copy the build outside and run again.
And it works sending all the files to the server.
Upvotes: 0
Reputation: 73
Thanks for help Frank.. I have figured out this works. The Public directory was causing me problems So I changed firebase.json to have Public: ".". Now all the files in my root directory deploy The documentation or the prompt should say enter . for root. The documentation should also point out that you should create a project from the console before initializing a directory. I am having a problem creating projects and will post another question to Stack. Thanks for all your help.. You have been a great help to me in the past as well
Upvotes: -1
Reputation: 599041
It sounds like you might be signed in to an old account or using an old version of the CLI.
Can you take these steps:
firebase logout
npm install -g firebase-tools
firebase login
firebase init
againUpvotes: 9