user:kluong:using_cloudflare_pages

Using cloudflare pages

Now that github doesn't offer static website hosting for private repositories anymore we'll need to find other options to host the scel-hawaii.org website. There are a couple of options:

  1. make the repository public and use pages
  2. use a traditional host
  3. use something like cloudflare pages.

Background

scel-hawaii.org is built using the jekyll framework: https://jekyllrb.com/

You can run it locally, although it's pretty old so you may need to update some dependencies.

Here's what I had to do (note you'll need `rvm` installed):

$ rvm install 2.7.5

$ rvm use 2.7.5
Using /home/kluong/.rvm/gems/ruby-2.7.5

# remove the existing gemfile so we can update the dependencies
$ rm Gemfile.lock
...
Using kramdown-parser-gfm 1.1.0
Using jekyll-sass-converter 2.2.0
Using jekyll 4.2.2
Bundle complete! 1 Gemfile dependency, 28 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.


$ jekyll serve 

Updating the dependencies

From the instructions in the previous step, make sure the changes to Gemfile and the Gemfile.lock are committed and pushed up.

Using cloudflare pages

https://pages.cloudflare.com/

SCEL has a cloudflare account we can use. The getting started page should be enough to get this: https://developers.cloudflare.com/pages/get-started/

Once we've validated the pipeline is working, we'll need to switch the DNS settings over in the dashboard.

Authors

Contributing authors:

kluong

Created by kluong on 2022/10/01 00:06.

  • user/kluong/using_cloudflare_pages.txt
  • Last modified: 2022/10/01 00:10
  • by kluong