Problem with firebase init and deploy, "no deploy targets found"

0

I have a problem wanting to upload my project to firebase, by setting firebase init and after selecting hosting and the database that is also in firebase appears:

i  .firebaserc already has a default project, skipping

i  Writing configuration info to firebase.json...
i  Writing project information to .firebaserc...

+  Firebase initialization complete!

and when I give firebase deploy I get the following error

Error: No deploy targets found. Valid targets: database,storage,functions,hosting

once the error appears the firebase-debug.log is removed

my firebase.json is empty only with {} and my .firebaserc remains with:

{
  "projects": {
    "default": "colefuente"
  }
}

my version of firebase-tools is

$ npm firebase-tools -v 4.1.2

I do not know what else to do: c

    
asked by sebastian acuña 12.05.2017 в 03:00
source

1 answer

0

I solved it by revising the guide to do it from firebase, I eliminated the fields of database-rules.json and the one of the storage that I was not going to use, I just left the one of the hosting and it worked: 3

{

  "hosting": {
    "public": "dist",
    "ignore": [
      "firebase.json",
      "database-rules.json",
      "storage.rules"
    ]
  }
}
    
answered by 12.05.2017 / 05:18
source