Libertarian-Party-of-Monroe-County / monroelpin.org

https://monroelpin.org
0 stars 0 forks source link

Host on GitHub Pages #11

Open mattbatman opened 2 years ago

mattbatman commented 2 years ago

I believe that @dcavar wants to change the hosting from AWS to GitHub pages. This is very simple. I can add back the deploy script to create production/static builds on a branch called gh-pages (I had done this before the decision to use AWS). We then just need to change the DNS configuration to point to GitHub pages. Here's the documentation on DNS configuration for custom domains.

I think the catch is that custom domains are only available on paid accounts. So, our options are to:

  1. Pay
  2. Move to GitLab
  3. Make the repository public

If we pay or make the repository public, we'll just need to:

mattbatman commented 2 years ago

It looks like it would be $4 per month for a paid GitHub plan.

marckerr commented 2 years ago

There are some fairly cheep hosting plans out there. Here's one thing I found. https://websitesetup.org/cheap-web-hosting/ I've used Dreamhost and they lets you run just about anything and they have some easy setup options with Wordpress and Something they call Remixer for site builds. I suspect all the others listed are similar. I didn't read the article well so I'm not sure about traffic up charges. Dreamhost includes some large amount of data but then starts charging more if you have lots of traffic, I don't think that would be a problem for us.

mattbatman commented 2 years ago

Nice list.

As long as we're using a static site generator, my vote would still be to use GitHub pages at $4/month or use GitLab for free. If we use GitLab, we would have an automated deploy where when someone just pushed to master GitLab would do a CI/CD build and pump it out. If we used GitHub, someone could just push to master then run npm run deploy and have the gh-pages branch built and pushed. I suspect the issue here is that right now, only Damir can deploy to AWS, because only he has credentials to the other account.

I suspect using GitLab will get voted down because they're a Russian company or their founders are Russian or something like that.

dcavar commented 2 years ago

Yes, GitHub seems the easiest, we edit and push there, and just generate it there.

I used the free tier of AWS but ended up paying $ 10 to $ 15 per month due traffic over quota. The thing is, you need to git it, generate it, push it to the instance, or set up a callback service on the instance to get the new release from GitHub. Easiest is to keep it on GitHub and not bother. Let us set this up, what do you think?

CU DC

Sent from my T-Mobile 5G Device Get Outlook for Androidhttps://aka.ms/ghei36


From: Matt Batman @.> Sent: Friday, July 22, 2022 9:09:19 AM To: Libertarian-Party-of-Monroe-County/monroelpin.org @.> Cc: Damir Cavar @.>; Mention @.> Subject: Re: [Libertarian-Party-of-Monroe-County/monroelpin.org] Host on GitHub Pages (Issue #11)

Nice list.

My vote would still be to use GitHub pages at $4/month or use GitLab for free. If we use GitLab, would have an automated deploy where when someone just pushed to master GitLab would do a CI/CD build and pump it out. If we used GitHub, someone could just push to master then run npm run deploy and have the gh-pages branch built and pushed. I suspect the issue here is that right now, only Damir can deploy to AWS, because only he has credentials to the other account.

I suspect using GitLab will get voted down because they're a Russian company or their founders are Russian or something like that.

— Reply to this email directly, view it on GitHubhttps://github.com/Libertarian-Party-of-Monroe-County/monroelpin.org/issues/11#issuecomment-1192556660, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AALXU7GTSMGKZTFBUMSLMATVVKMP7ANCNFSM54LJS7PQ. You are receiving this because you were mentioned.Message ID: @.***>

marckerr commented 2 years ago

So as long as we can have an email domain for monroelpin.org for things like mailing lists and to receive email at addresses like treasure, chair, etc. We probably need dedicated email options for the financial stuff. The coding functions in GitHub are nice but we just need a blog and email addresses

mattbatman commented 2 years ago

The site is a blog. You can write blog posts in Markdown, run a site build process, and it gets generated as a client-side-only blog page (e.g. served only as HTML/CSS/JS).

I may be out of the loop on another conversation, though. What do you mean by financial stuff?

marckerr commented 2 years ago

I might be out of the loop too or on the wrong subject but I feel strongly that we need dedicated email addresses at monroelpin.org for various functions. I don't think anything financial or bank related should be tied to a personal email address that we don't control as a group. Also for the social media stuff it would be better to have email addresses that are not personal and that we control as a group.

mattbatman commented 2 years ago

OK. I get it. I was thinking maybe you had meant adding email and donation forms to the website.

So, I think we have dedicated email addresses already using the domain -- they're just controlled by Damir right now, since he bought the domain quite a while ago and set them up. I think the issue was securely sharing the password to the account or something. We were supposed to find a way to securely share passwords outside of writing the passwords down on a sheet of paper, but nothing came of it. I think there's chair@monroelpin.org and info@monroelpin.org. We can set up another or collectively use info@monroelpin.org.

So, to deploy to GitHub Pages and keep the repository private, we need to:

  1. Boost this organization to a paid account, ideally tied to a collectively controlled @monroelpin.org email address
  2. Either set-up a GitHub Action to deploy to gh-pages or I can add a local deploy script so someone can run npm run deploy from their computer, have the build run there, and push to the branch using that single command
  3. Add the appropriate DNS records to point to GitHub pages