I have downloaded the code to deploy on firebase hosting, starting with moving all the files to the public folder.
After that I use cmd command in the main folder, starting from
firebase init hosting
and choose as follows
and use the command
firebase deploy --only hosting:(myhostname) and hit enter
Anyone who has ever taken a file from weweb and deployed it on firebase, please advise me. My website is nothing much, just a landing page, no connection to the database, just to provide information to click to another website.
And I tested it, it came up like this.
You need to say yes to overwrite index.html file, or at least I think so. Because the page you see now could be the Firebase’s index.html, it’s worth a try.
So did I do the right thing by moving all the files when I first downloaded them to public?
Hm, nevermind, ignore my previous answer, it’s wrong I’m just reading firebase docs.
You basically should not remove or move any files, instead of the public folder, you need to type . which specifies the current directory when initiating.
So instead of specifying public as the folder, just press enter or type in a dot. Then it should work. Also do not overwrite the index.html
that . from you, you save my day. thank you
damn how to say thanks alot >.<
1 Like