palembang-digital / web

Palembang Digital New Revamped Website
http://v2.palembangdigital.org/
0 stars 0 forks source link

Website Deployment #23

Closed ariefrahmansyah closed 4 months ago

ariefrahmansyah commented 4 months ago

To be discussed:

Requirements:

gadingnst commented 4 months ago

Where to deploy:

I have 2 options:

  1. Still deploy to Vercel, but in different Github Accout

    • Create a new Github Account & Vercel Account,
    • Create a private repository in new Account
    • Create a Github Actions to trigger pull the code from our main Repository in Palembang Digital orgs into that new repository in new account
    • Deploy the repository in Vercel new Account
  2. other platform outside Vercel

but I haven't try it, maybe we can explore together, or just use option 1 😂


Should we handle dev/staging, preview or production?

Maybe we can just use dev/staging & production.

What are the domains before release? v2.palembangdigital.org?

Agreed, I think v2.palembandigital.org would be great

ariefrahmansyah commented 4 months ago

Got it, I'll try exploring option 2. The current palembangdigital.org is deployed in fly.io, I'll try this first.

ariefrahmansyah commented 4 months ago

After offline discussion on our WA group, we've decided to try Vercel first and find a seamless (non-hacky) way to do that. And I finally able to do so by doing following:

1.⁠ ⁠create new github account: patal-bot 2.⁠ ⁠⁠⁠add patal-bot to palembang-digital org 3.⁠ ⁠⁠create new vercel account that linked to that patal-bot and palembang-digital org 4.⁠ ⁠⁠create new project in vercel to build palembang-digital/web

Now, we can see the vercel deployment integration is already working in this PR: https://github.com/palembang-digital/web/pull/25

ariefrahmansyah commented 4 months ago

Closed this as we've done:

  1. Deploy to Vercel and enable Production & Preview Deployment Environment a. The Production environment is deployed from the main branch b. The Previed environment is deployed from each Pull Request -- each PR will have different subdomain.
  2. Configure the production domain to https://v2.palembangdigital.org/