I'm trying to host a website in Firebase Hosting (free plan), I followed the steps but it does not generate the file firebase.json
my steps
1- firebase login Already logged in as r*****@gmail.com
2- firebase init
######## #### ######## ######## ######## ### ###### ########
## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ######
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ########
You're about to initialize a Firebase project in this directory:
C:\Users\Rafael de Azeredo
Before we get started, keep in mind:
- You are initializing in an existing Firebase project directory
? Are you ready to proceed? Yes ? Which Firebase CLI features do you want to setup for this folder? Press Space to select features, then Enter to confi rm your choices. Hosting: Configure and deploy Firebase Hosting sites
=== Project Setup
First, let's associate this project directory with a Firebase project. You can create multiple project aliases by running firebase use --add, but for now we'll just set up a default project.
i .firebaserc already has a default project, skipping
=== Hosting Setup
Your public directory is the folder (relative to your project directory) that will contain Hosting assets to be uploaded with firebase deploy. If you have a build process for your assets, use your build's output directory.
? What do you want to use as your public directory? public ? Configure as a single-page app (rewrite all urls to /index.html)? No ? File public/404.html already exists. Overwrite? No i Skipping write of public/404.html ? File public/index.html already exists. Overwrite? No i Skipping write of public/index.html
i Writing configuration info to firebase.json... i Writing project information to .firebaserc...
- Firebase initialization complete!
3- firebase deploy
=== Deploying to 'myhosting-dfe25'...
i deploying database, hosting i database: checking rules syntax... + database: rules syntax for database myhosting-dfe25 is valid i hosting: preparing public directory for upload... + hosting: 2 files uploaded successfully i database: releasing rules... + database: rules for database myhosting-dfe25 released successfully
- Deploy complete!
Project Console: https://console.firebase.google.com/project/myhosting-dfe25/overview Hosting URL: https://myhosting-dfe25.firebaseapp.com
4- https://myhosting-dfe25.firebaseapp.com but when I open the page I get this message instead of my index.html:
Welcome Firebase Hosting Setup Complete You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!
Can someone help me please?
firebase.json
has to exist. What what are you expecting to happen and what is actually happening? – abrahamfirebase init
inC:\Users\Rafael de Azeredo
? – abraham