Jekyll + Github = 무료 호스팅: 튜토리얼
요구 사항:
        $ ruby -v
        ruby 2.x.x
     $ gem install bundler
 * Install git, see [set up Git](https://help.github.com/articles/set-up-git/)
  * Open terminal
  * Initialize a new Git repo for your jekyll site:
        $ git init <GitHubUsername>.github.io
        Initialized empty Git repository in /Users/horseforce/andrehatlo.github.io/.git/
        # creates a new file directory on your local computer, Initialized as a Git repo
        $ cd <GitHubUsername>.github.io
1단계: 번들러를 사용하여 Jekyll 설치하기
     $ ls
        Gemfile
* If you have a Gemfile, skip to step 4.
        source 'http://rubygems.org'
        gem 'github-pages', group: :jekyll_plugins
Gemfile 로 저장합니다. 이제 5단계로 건너뛰어 Jekyll을 설치하세요.         source 'https://rubygems.org'
        gem 'github-pages', group: :jekyll_plugins
        $ bundle install
        Fetching gem metadata from https://rubygems.org/......
        Fetching version metadata from https://rubygems.org/...
        Fetching dependency metadata from https://rubygems.org/..
        Resolving dependencies...
2단계: 로컬에서 Jekyll 사이트 실행
로컬 리포지토리에서 기본 Jekyll 템플릿 사이트에 대한 사이트 파일을 생성할 수 있습니다.
        $ bundle exec jekyll _3.3.0_ new <new-jekyll-site-repo-name>
        New jekyll site installed in /Users/horseforce/<new-jekyll-site-repo-name>.
    $ 'jekyll', "3.3.0"
#를 삭제합니다.        $ gem "github-pages", group: :jekyll_plugins
        $ git init
        $ git remote add origin http://github.com/<username/organization-name/your-remote-repo-name>
        $ cd <GithubUsername>.github.io
다음 명령을 실행합니다.
$ bundle exec jekyll serve
Configuration file: /Users/horseforce/andrehatlo.github.io/_config.yml
            Source: /Users/horseforce/andrehatlo.github.io
       Destination: /Users/horseforce/andrehatlo.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 0.309 seconds.
 Auto-regeneration: enabled for '/Users/horseforce/my-site'
Configuration file: /Users/horceforce/andrehatlo.github.io/_config.yml
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
http://localhost:4000         $ git add .
        $ git commit -m "some stuff changed"
      $ git push -u origin master
3단계: github에서 호스트하도록 만들기
저장소로 이동합니다.
다음 형식으로 이름을 지정해야 합니다.
    <github-username>.github.io
리포지토리가 다른 이름인 경우 다음 단계에서 변경할 수 있습니다.
저장소 설정을 입력하십시오.
가장 먼저 보이는 것은
Repository name 입니다. 구문과 일치하도록 수정하세요.    <github-username>.github.io
그런 다음
GitHub Pages가 보일 때까지 repo 설정에서 더 아래로 스크롤합니다.@ GitHub 페이지
바라건대 이제 다음과 같이 말해야 합니다.
✔️ Your site is published at: http://www.andrehatlo.github.io
If not, there is possibly something wrong with your repository or github setup.
사용자 지정 도메인 적용
Custom domain 아래에 GitHub Pages가 보일 때까지 github repo 설정 페이지에서 아래로 스크롤합니다.도메인 이름을 입력하고 저장을 클릭합니다.
이제 도메인 호스팅 업체 웹사이트로 이동하여 리포지토리를 가리키는 CNAME 레코드를 만듭니다. 이는 DNS 레코드 설정에서 수행할 수 있습니다.
    www.andrehatlo.com ->  CNAME -> <github-username>.github.io
이제 무료로 호스팅되는 나만의 도메인이 있어야 합니다.
웹 사이트를 계속 조정하고 다양한 테마를 모두 확인하십시오! 앞으로 Jekyll에 대한 더 많은 튜토리얼로 찾아오겠습니다 😄
이것이 내 첫 번째 블로그 게시물로 충분히 도움이 되었기를 바랍니다.
나는 더 많이 더 많이 작성하여 가능한 한 빨리 뛰어나도록 노력할 것입니다! 👋 👋
Reference
이 문제에 관하여(Jekyll + Github = 무료 호스팅: 튜토리얼), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/andrehatlo/jekyll-github-free-hosting-tutorial-2kga텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)