안녕하세요. The Grit입니다. Octopress 블로그 설치 포스팅이며, 현재 진행중입니다.
* Windows 환경에서 Octopress 설치 및 사용
1. Ruby 설치
http://rubyinstaller.org/downloads/
C:\Ruby23-x64
-> 윈도우 환경 변수 설정
-> C:\Ruby23-x64\bin
2. Rails 설치
http://railsinstaller.org/en
windows 용 다운로드 및 설치
설치 위치 -> C:\RailsInstaller
3. devkit 설치
devkit의 경로의 bin 폴더 또한 환경변수에 추가
C:\tools\DevKit\bin
4. Git 설치 및 실행
git bash 실행
루비 버전 등 확인
ruby -v
rails -v
gem -v
bundler -v
5. octopress repository clone
git clone git://github.com/imathis/octopress.git octopress
-> 설치하는 폴더에 octopress 디렉터리가 생성
-> 앞으로 블로그작업을 하는 workspace
gem install bundler
bundle install
rake install
gem install rubygems-bundler
gem regenerate_binstubs
bundle update rake
5-1. Error
Gem::InstallError: The 'RedCloth' native gem requires installed build tools. Please update your PATH to include build tools or download the
DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at
'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' An error occurred while installing RedCloth (4.2.9),
and Bundler cannot continue. Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling.
MINGW64 ~/Google 드라이브/19. Octopress/octopress (master)
-> Rails 설치 후 해결
rake install
$ rake install
rake aborted!
Gem::LoadError: You have already activated rake 12.0.0, but your Gemfile requires rake 10.5.0. Prepending `bundle exec` to your command may solve this.
D:/GoogleDrive/Octopress/octopress/Rakefile:2:in `'
LoadError: cannot load such file -- bundler/setup
D:/GoogleDrive/Octopress/octopress/Rakefile:2:in `'
(See full trace by running task with --trace)
->bundle exec rake install
$ bundle exec rake install
mkdir -p source
cp -r .themes/classic/source/. source
mkdir -p sass
cp -r .themes/classic/sass/. sass
mkdir -p source/_posts
mkdir -p public
## Set the codepage to 65001 for Windows machines
## Copying classic theme into ./source and ./sass
$ gem install wdm Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed wdm-0.1.1 Parsing documentation for wdm-0.1.1 Installing ri documentation for wdm-0.1.1 Done installing documentation for wdm after 1 seconds 1 gem installed
6. rake setup
$ rake setup_github_pages
https://github.com/karas639/karas639.github.io.git
rm -rf _deploy
mkdir _deploy
cd _deploy
Initialized empty Git repository in D:/GoogleDrive/octopress/_deploy/.git/
[master (root-commit) 303463f] Octopress init
1 file changed, 1 insertion(+)
create mode 100644 index.html
cd -
## Set the codepage to 65001 for Windows machines
Enter the read/write url for your repository
(For example, 'git@github.com:your_username/your_username.github.io.git)
or 'https://github.com/your_username/your_username.github.io')
Repository url: Added remote https://github.com/karas639/karas639.github.io.git as origin
Set origin as default remote
Master branch renamed to 'source' for committing your blog source files
---
## Now you can deploy to https://github.com/karas639/karas639.github.io.git with `rake deploy` ##
7. 배포
$ rake generate
directory source/stylesheets
DEPRECATION WARNING on line 87 of C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:
unquote('"$moz-"#{$experimental-support-for-mozilla} "$webkit-"#{$experimental-support-for-webkit} "$opera-"#{$experimental-support-for-microsoft} "$khtml-"#{$experimental-support-for-khtml}')
You can use the sass-convert command to automatically fix most cases.
DEPRECATION WARNING on line 92 of C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:
unquote('"$ie6-"#{$legacy-support-for-ie6} "$ie7-"#{$legacy-support-for-ie7} "$ie8-"#{$legacy-support-for-ie8}')
You can use the sass-convert command to automatically fix most cases.
write source/stylesheets/screen.css
Configuration file: D:/GoogleDrive/octopress/_config.yml
Source: source
Destination: public
Generating...
done.
Auto-regeneration: disabled. Use --watch to enable.
## Set the codepage to 65001 for Windows machines
## Generating Site with Jekyll
참고 URL
http://thaiat.github.io/blog/2014/03/13/how-to-install-and-use-octopress-on-windows/
http://sanghyukchun.github.io/2/
https://blog.asamaru.net/2015/08/20/octopress-rake-deploy-error/
https://blog.asamaru.net/2015/08/19/octopress-install/
https://nolboo.kim/blog/2013/07/21/start-octopress/
http://utumno.github.io/blog/2013/12/21/set-up-octopress-in-windows-7/
http://learnaholic.me/2012/10/10/deploying-octopress-to-github-pages-and-setting-custom-subdomain-cname/
http://octopress.org/docs/deploying/github/
https://windtale.net/blog/using-custom-domain-with-octopress-in-github-pages/
http://engfordev.github.io/octopress/deploying/github/
https://nolboo.kim/blog/2013/07/21/start-octopress/
https://opentutorials.org/course/297/1902
'Programming' 카테고리의 다른 글
python bash 쉘 실행하기(스크립트) (0) | 2017.08.07 |
---|---|
파이썬 스크립트 크론탭(crontab) 등록 (0) | 2017.05.26 |
[문자열]-1 (정리필요) (0) | 2017.02.20 |
[Django] 문제 - View 함수 추가 및 App 생성하여 간단한 html 코드 작성 (0) | 2015.07.08 |
[Django] Templet 활용하기 (0) | 2015.07.08 |