± cd blog
You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /Users/wuyexiong/Blog/wuyexiong.github.com/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.
********************************************************************************************************************
* NOTICE *
********************************************************************************************************************
* RVM has encountered a new or modified .rvmrc file in the current directory, this is a shell script and *
* therefore may contain any shell commands. *
* *
* Examine the contents of this file carefully to be sure the contents are safe before trusting it! *
* Do you wish to trust '/Users/wuyexiong/Blog/wuyexiong.github.com/.rvmrc'? *
* Choose v[iew] below to view the contents *
********************************************************************************************************************
y[es], n[o], v[iew], c[ancel]> y
Using /Users/wuyexiong/.rvm/gems/ruby-2.0.0-p247
###bundle install
<div class=’bogus-wrapper’><div class=”highlight”><table><tr><td class=”gutter”><pre class=”line-numbers”>12345678910111213
</pre></td><td class=’code’><pre>± bundle install
Fetching gem metadata from http://rubygems.org/.......
Fetching additional metadata from http://rubygems.org/..
Installing rake (0.9.2.2)
Installing RedCloth (4.2.9)
Installing chunky_png (1.2.5)
Installing fast-stemmer (1.0.1)
***略
***略
Installing stringex (1.4.0)
Using bundler (1.5.1)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.</pre></td></tr></table></div></div>
###gem install jekyll
<div class=’bogus-wrapper’><div class=”highlight”><table><tr><td class=”gutter”><pre class=”line-numbers”>12345678910111213141516
</pre></td><td class=’code’><pre>± gem install jekyll
Fetching: liquid-2.5.4.gem (100%)
Successfully installed liquid-2.5.4
Fetching: rb-fsevent-0.9.4.gem (100%)
Successfully installed rb-fsevent-0.9.4
Fetching: ffi-1.9.3.gem (100%)
Building native extensions. This could take a while...
Successfully installed ffi-1.9.3
***略
***略
Installing ri documentation for parslet-1.5.0
Parsing documentation for toml-0.1.0
Installing ri documentation for toml-0.1.0
Parsing documentation for jekyll-1.4.2
Installing ri documentation for jekyll-1.4.2
17 gems installed</pre></td></tr></table></div></div>
4.修复rake环境问题
执行rake install的时候弹出错误提示
123456789
± rake install
rake aborted!
You have already activated rake 10.1.0, but your Gemfile requires rake 0.9.2.2. Prepending `bundle exec` to your command may solve this.
/Users/wuyexiong/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.5.1/lib/bundler/runtime.rb:34:in `block in setup'
/Users/wuyexiong/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.5.1/lib/bundler/runtime.rb:19:in `setup'
/Users/wuyexiong/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.5.1/lib/bundler.rb:119:in `setup'
/Users/wuyexiong/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.5.1/lib/bundler/setup.rb:7:in `<top (required)>'
/Users/wuyexiong/Blog/wuyexiong.github.com/Rakefile:2:in `<top (required)>'
(See full trace by running task with --trace)
± rake preview
Starting to watch source with Jekyll and Compass. Starting Rack on port 4000
[2013-12-31 15:54:08] INFO WEBrick 1.3.1
[2013-12-31 15:54:08] INFO ruby 2.0.0 (2013-06-27) [x86_64-darwin12.5.0]
[2013-12-31 15:54:08] INFO WEBrick::HTTPServer#start: pid=15479 port=4000
Configuration from /Users/wuyexiong/Blog/wuyexiong.github.com/_config.yml
Auto-regenerating enabled: source -> public
[2013-12-31 15:54:08] regeneration: 136 files changed
Dear developers making use of FSSM in your projects,
FSSM is essentially dead at this point. Further development will
be taking place in the new shared guard/listen project. Please
let us know if you need help transitioning! ^_^b
- Travis Tilley
>>> Compass is watching for changes. Press Ctrl-C to Stop.
± rake setup_github_pages
Enter the read/write url for your repository
(For example, 'git@github.com:your_username/your_username.github.io)
Repository url: git@github.com:wuyexiong/wuyexiong.github.com.git//这里写你的github上博客repository的ssh URL
rm -rf _deploy
mkdir _deploy
cd _deploy
Initialized empty Git repository in /Users/wuyexiong/Blog/wuyexiong.github.com/_deploy/.git/
[master (root-commit) ada2d3b] Octopress init
1 file changed, 1 insertion(+)
create mode 100644 index.html
cd -
---
## Now you can deploy to http://wuyexiong.github.io with `rake deploy` ##