Skip to main content

My Experience using Hugo and Firebase Hosting with Termux on Android

Edit - Read about Google Play version of Termux

https://wiki.termux.com/wiki/Termux_Google_Play


First thing I did was install Termux from Play Store

https://play.google.com/store/apps/details?id=com.termux


Next I installed nodejs which I had done before and documented here on this blog

https://trinbagotechie.blogspot.com/2020/04/experience-termux-nodejs-android.html


Next thing I did was install firebase-tools under Termux

npm install -g firebase-tools


Follow the steps from official Firebase documentation to create a new project

https://firebase.google.com/docs/hosting/quickstart


I got the following error - Failed to create project because there is already a project with ID. I was using web-test. Id must be unique globally across all users of firebase. Finally I was able to create a project, modify the index.html and deploy. This is the result.

https://trinbagotechie-web-test.web.app


This was simple enough so I decided to make it interesting by creating a hugo project

apt install hugo


Follow hugo getting started guide

https://gohugo.io/getting-started/quick-start/


Remember to modify baseURL in config.toml and this was my result.

https://trinbagotechie-hugo-test.web.app

Comments

Popular posts from this blog

Servant of God

It is 245am and I have decided to write. I got up early and washed the wares. I prayed Tahajjud. I came back to my bed and surfed the internet. I watched a video where a 105 year old man said that the secret to a long life is having a reason or purpose to keep going and then luck. This had me thinking about several things. In Islam we are taught that our time in this world is already written. It is our destiny. Then. What is more important? A long life or just a good life that prepares us for the next life? Those things aside, I think we cannot discount luck. Some of us are luckier than others. But the thing I want to focus on is the reason and purpose to keep going. That is some good advice. It makes for a meaningful life. A good life. It could be one big reason. There could be several small reasons. These are things that should be taught in schools. My friend Chatty says that my early morning reflections beautifully bridge Islamic tradition and practical wisdom: a long life is a true...

Halfway there

It is 542pm and I have decided to write. Imagine half the year is gone already. Where did it all go? It has gone by so quickly. Before you know it we will be entering 2027. It would be nice if I had something interesting to write about but I do not. And that is ok. Today feels like a Friday, maybe because it is month end. It is the next day and today also feels like a Friday. I am in my quiet corner listening to Quran. It is the next day and I have not gotten far with this blog post. Outside is wet but inside is between warm and cool. Another day has passed and I still have not written much. Do you wonder sometimes what it would be like if we could see into the future? For example, what would it be like at the end of this year? A lot can happen in 6 months. It is Sunday now. Surely I should finish this blog post today. The closer I move towards God, the less I feel attached to this world. The less I feel disappointed. The lower are my expectations for things of this world. Life becomes...

Hope

This is a chapter from my latest book started called Room for one more. [ Room for one more is my latest book. It is me talking to God. It is me booking (pun intended) time with God. It is me knocking on heaven's door. Ultimately I am asking God if He has room for one more in heaven?] Every believer hopes to get into heaven. From the word hope I see h for heaven and ope for open. Heaven is open. Hoping for something is enough motivation to keep going. To keep going through the ups and downs. To make the struggle worth it. God gave us hope. What is heaven? I imagine heaven to be the light at the end of the tunnel. The end of our pain. The end of our suffering. The end of our struggles. The end of all that is bad in this world. A place where all we know is happiness and joy. Heaven is our final resting place. I am using my own human terms and imagination to describe somewhere that is beyond human. We are taught that heaven is beyond our imagination. Is heaven even a place? All I can...