@zwbetz and @Rickycogley
I deployed and hosted to firebase by going through tutorials, but instead of hugo site it is showing me a modal attach in image
Also want to know if what is the concept of public folder in hugo?
While hosting it asks me to select public folder, i select default public folder, did I do anything wrong??
No, hugo server does not generate a folder/files by default (but you can add a switch to make that happen). Instead, it serves from memory. To create public you run hugo with whatever switches you need.
I am not sure how to do this directly from bitbucket, so, why not just start local to test it and get used to it. It looks like you run an init on your project folder, then specify where the public folder is in your firebase.json. What have you got in your firebase.json?
I don’t personally like putting my generated files into git so, I’d run hugo so the files get placed somewhere that I can then specify as “public” in firebase.json. Like:
It appears that once that’s set up, you just do firebase deploy to push your files up.
This is not tested. I have never used firebase but, looking at their docs, it looks like you should be able to get something deployed this way. Then once you do that, maybe “bitbucket pipelines” can be used to deploy it to firebase, on commit to master.
As @RickCogley mentioned, you should confirm the settings in your firebase.json file (see mine below). Also, make sure you are running hugo to generate your static site before you run firebase deploy.
Update: I got this working with Wercker CI. Now everytime I do a git push, it will deploy the site to firebase automatically. A few notes:
First, follow the hugo docs on deployment with wercker to link your Bitbucket account to your Wercker account, but stop once you get to the heading named Use the Hugo-build Step
Run firebase login:ci locally to generate your token
Create 2 environment variables in your wercker build pipeline: FIREBASE_TOKEN which will be the generated token from the previous step, and FIREBASE_PROJECT_NAME which is the name of your firebase project
Add this (or replace your existing) wercker.yml file to the root of your site, then update the hugo version as desired:
@zwbetz & @RickCogley Thanks a ton, Finally I am able to host with firebase locally. Thank you guys for clearing my doubts and sorry for all the troubles. @zwbetz I’ll try deploymnet with wercker and update you if it works or not also if any issue comes that is unknown I’am gonna trouble you again