Closed faiq-naufal closed 2 years ago
Mas @rhgenius. For deployment, the Hugo command that we will use is hugo --gc --minify
. This will generate a public
directory that contains all static files will be deployed. Please refer to the setup step number 5 here
@faiq-naufal we will use cloud run which is only run if there is any incoming traffic, that's why we need to generate hugo website and use nginx to serving the website, the goal is those generated public file by hugo exposed by nginx, if we use always up server then we cannot use cloud run, CMIIAW
@faiq-naufal we will use cloud run which is only run if there is any incoming traffic, that's why we need to generate hugo website and use nginx to serving the website, the goal is those generated public file by hugo exposed by nginx, if we use always up server then we cannot use cloud run, CMIIAW
@faiq-naufal we will use Cloud Flare Pages for the dev environment and it seems already deploy perfectly, for the prod environment we will use Github Pages, so I create new repository for our sandbox https://github.com/asumsi/inlive-web-prod and we need your help to make some adjustment based on this error:
Error: Error building site: POSTCSS: failed to transform "css/tailwind.css" (text/css): Error: Loading PostCSS Plugin failed: Cannot find module 'tailwindcss'
we found solution for this error based on https://github.com/withastro/snowpack/discussions/988 we need to do some changes to tailwindcss such as https://tailwindcss.com/docs/installation#post-css-7-compatibility-build
FYI, why we put our different environment on different provider is because of this 2 reason:
Kindly please make some adjustment on the repository https://github.com/asumsi/inlive-web-prod for our sandbox, just create the branch rebase from main branch and merge it to main branch and we can see the result on https://github.com/asumsi/inlive-web-prod/actions
Many thanks for your help @faiq-naufal
Hi mas @faiq-naufal you can now access the dev.inlive.app subdomain and it will be automatically build every time there is push to branch dev on inlive-website repository
Mas @rhgenius, ada kejanggalan sama deploymentnya yg mungkin bisa tolong dicek lagi.
Untuk production dengan domain inlive.app kan dari branch main
, seharusnya update developer portal di branch main
itu belum ada karena baru ada di branch dev
dan belum dimerge ke main
. Tapi ketika aku kunjungi https://inlive.app/docs/introduction/ UI untuk developer portalnya udah ada. Apa benar ini deployment dari branch main
?
Untuk domain dev.inlive.app deployment dari branch dev
. Seharusnya developer portal dan blog update UI nya sudah bisa dilihat. Tapi yang baru bisa dilihat adalah developer portal saja https://dev.inlive.app/docs/introduction/ , sementara kalau mengunjungi halaman blog https://dev.inlive.app/blog/ tampilannya cuma ada text saja. Boleh dicek lagi deploymentnya mas?
mas @faiq-naufal saya sudah cek di Cloud Build untuk yang dev seperti diatas, ada yang perlu dibantu ketika saya buat ulang di cloud flare pages ada error yang saya lampirkan berikut ini: inlive-website.13f7bbf3-2e63-44ff-8f37-4adb59f97381.log apakah branch main sudah sama dengan dev mas @faiq-naufal ?
mas @rhgenius
mas @faiq-naufal saya sudah cek di Cloud Build untuk yang dev seperti diatas
Branch dev bagian blognya masih belum muncul updatenya. Apa perlu diredeploy ya mas dari cloud build nya?
ketika saya buat ulang di cloud flare pages ada error yang saya lampirkan berikut ini: inlive-website.13f7bbf3-2e63-44ff-8f37-4adb59f97381.log
Hmm, untuk error ini seharusnya udah disolve di branch dev
tapi di branch main
belum karena belum dimerge. Ini berkaitan dengan Hugo versi baru
kalau di kita versi 0.93.2 akan komplain karena menggunakan .URL
untuk link (deprecated) di sini yang akan membuat build nya jadi error.
Kalau diturunkan aja versi Hugonya saat ini gimana mas? ke versi 0.92.2
apakah branch main sudah sama dengan dev?
Belum mas, untuk update dokumentasi portal dan blog seharusnya baru di dev belum dimerge ke main
mas @rhgenius Boleh minta tolong dilist mas file yang akhirnya digunakan untuk deployment untuk branch dev
.
Karena pas lihat di sini https://github.com/asumsi/inlive-website/tree/dev ada beberapa file yang aku kurang tahu nih apa filenya masih dipakai atau enggak.
Contohnya: site.conf, docker.sh
Updated on here
mas @rhgenius Boleh minta tolong dilist mas file yang akhirnya digunakan untuk deployment untuk branch
dev
. Karena pas lihat di sini https://github.com/asumsi/inlive-website/tree/dev ada beberapa file yang aku kurang tahu nih apa filenya masih dipakai atau enggak. Contohnya: site.conf, docker.shUpdated on here
sudah mas, dokumentasi juga sudah saya update
Untuk task ini branch main
sudah berhasil diarahkan ke inlive.app dideploy ke Cloudflare Pages dan branch dev
sudah berhasil diarahkan ke dev.inlive.app dan dideploy ke Kubernetes cluster.
Mas @tyohan, untuk branch dev
yang sekarang bisa kita merge ke main
?
Kayaknya no issue karena kita belum launching juga. Silakan aja dimerge @faiq-naufal
Mas @rhgenius, ketika ada merge ke branch dev
buildnya udah berhasil tapi updatenya masih belum muncul di dev.inlive.app. Boleh minta tolong dicek lagi.
This issue is closed because we have successfully deployed this inlive-website repo. Currently, we have fully switched the deployment for all branches to Cloudflare pages. The domain dev.inlive.app
is disabled for now.
Dev: https://dev.inlive-website.pages.dev
Production: https://inlive.app
What is the issue about?
Setup and deployment execution for inlive-website repo on
inlive.app
domain.How urgent this issue?
High priority and high urgency
Describe the issue
This issue is the continuation for inlive repo domain switching issue. Our inlive-website repo is a repo mainly focuses on static content such as landing page, documentation, and blog. Currently, the repo hasn't been deployed to live server. We need to deploy inlive-website repo and point it to
inlive.app
domain.This issue is created separately because we need to do deployment setup and preparation before pointing the inlive-website repo to
inlive.app
domain which are different tasks with the domain switching issue.What is the possible solution we have?
We will deploy the inlive-website repo on Cloud Run platform because our other front end applications were deployed there. To accomplish this, these are the things that we need to do:
After these tasks are accomplished we are ready to deploy our application on Cloud Run. We need to set the DNS our inlive-website to point to
inlive.app
main
branch toinlive.app
dev
branch todev.inlive.app
cc: @rhgenius