Skip to content

Redesigning, modernizing, and Optimizing selfhelphawaii.com.

License

Notifications You must be signed in to change notification settings

jasoncavinder/SHH_site_refresh_2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to SelfHelpHawaii.com - Site Refresh (2023) 👋

Redesigning, modernizing, and Optimizing selfhelphawaii.com using hugo.

🏠 Production Site - selfhelphawaii.com

Staging Site - jasoncavinder.github.io/SHH_site_refresh_2023/

Todo

  • Create Update README.md
  • Create Update LICENSE.md
  • Finish Building the new site
  • Setup GitHub Pages for staging (preview) site
  • Setup GitHub.dev for content updates by client
  • Setup GitHub Actions for publishing to staging/production
  • Relax... you're done!

How to build

Local builds - Build and run locally

Requirements:

cd /path/to/local/files
hugo server

Staging builds - Deploy to Github Pages for preview

Method 1 - from your computer

NOTES - How I setup gh-pages branch

git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m 'Initialize GitHub Pages'
git checkout main
git worktree add public/staging gh-pages
cd public/staging
git push --set-upstream origin gh-pages

This was adapted from riivanov's [comment](<(https://gist.github.com/cobyism/4730490?permalink_comment_id=4266141#gistcomment-4266141)>) at Deploying a subfolder to GitHub Pages

hugo -e staging

# Workaround for '.git' deleted by --cleanDestinationDir
# See https://github.com/gohugoio/hugo/pull/6261
git worktree repair

cd public/staging
git add .
git commit -m 'v#.#.#'     # increment 3rd number
git push

Method 2 - from GitHub.dev

  • TODO - Setup GitHub action for HUGO build and deploy to gh-pages

Production builds

Deploy to selfhelphawaii.com

Method 1 - from your computer

# Tentative. Not yet configured.
hugo -e production

# Workaround for '.git' deleted by --cleanDestinationDir
# See https://github.com/gohugoio/hugo/pull/6261
git worktree repair

cd public/production
git add .
git commit -m 'v#.#.#'     # increment 2nd/3rd num appropriately
git push

Method 2 - from GitHub.dev

  • TODO - Create GitHub Action for HUGO build and deploy to production site.

Author

👤 Jason Cavinder

Show your support

Give a ⭐️ if this project helped you!


This README was initially generated with ❤️ by readme-md-generator

About

Redesigning, modernizing, and Optimizing selfhelphawaii.com.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published