Created
September 28, 2012 03:46
-
-
Save jsok/3797830 to your computer and use it in GitHub Desktop.
Octopress on Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before doing the initial setup, grab the following from apt-get: | |
$ sudo apt-get install zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev git-core | |
Head over to: | |
http://octopress.org/docs/setup/ | |
Install rbenv as described: | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
source ~/.bash_profile | |
Then: | |
rbenv install 1.9.3-p194 | |
rbenv rehash | |
rbenv global 1.9.3-p194 | |
ruby --version | |
Finally ready to start octopress install: | |
git clone git://github.com/imathis/octopress.git octopress | |
cd octopress | |
gem install bundler | |
rbenv rehash # If you use rbenv, rehash to be able to run the bundle command | |
bundle install | |
rake install | |
Fire it up: | |
rake generate | |
rake preview |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment