Skip to content

claireinez/harp-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 

Repository files navigation

How to Deploy a Harp App in GitHub Pages

NOTE: Node.js, Node Package Manager and Harp.js must be installed before proceeding. Resources are available at foot of page.

  1. Create repository in GitHub / initialize with readme

  2. Terminal: Clone Repository to your local machine using either HTTPS (first option) or SSH (SSH must be set up first)

  1. Go to repo directory
  • $ cd repository
  1. Create new branch "gh-pages"
  • $ git checkout --orphan gh-pages
  1. Remove all files in folder
  • $ git rm -rf . [don't forget the dot at the end!]
  1. Init standard harp app
  • $ harp init _harp

OR

Init harp app with a random example blog template

  • $ harp init _harp --boilerplate harp-boilerplates/hb-blog
  1. Compile harp app
  • $ harp compile _harp ./
  1. Git add changed files
  • $ git add -A
  1. Commit Git changes
  • $ git commit -a -m "insert commit message here"
  1. Git push changes to repository
  • $ git push origin gh-pages
  1. Your page can be found at [username].github.io/[repository].

If problems arise, go to 'branches' in your repo and delete your gh-pages branch and start again from Step 1!


Additional Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors