Setup Octopress Blog and Deploy to Heroku
I created this blog site with octopress. Formerly, I was using blogspot but I want to change a flexible platform like jekyll based octopress. Here is how I setup this blog site from scratch.
Firstly, you must have to install git
Install RVM, Ruby and Bundler
You must run the following command for installing rvm
curl -L https://get.rvm.io | bash -s stable --ruby
After the rmv install properly, we need to install ruby
rvm install 2.1.1 rvm use 2.1.1 --default rvm rubygems latest
Install Bundler gem
gem install bundler
We will clone the repository and make our changes directly in the octopress source codes.
git clone git://github.com/imathis/octopress.git octopress cd octopress
Inside the project, you must run bundle for installing dependencies of octopress gem.
Deploying to Heroku
You must install heroku gem first
gem install heroku
You must have a heroku account. After the sign in you can open a new app from heroku dashboard
Now, you must add a remote address to your project. For that purpose, go to settings page of your app
Copy the Git Url of your app and run the following command
git remote add heroku firstname.lastname@example.org:yourapp.git
.gitignore in the root of your repository and remove
public. This will let you add generated content for deploying it to Heroku.
Let’s build the static contents and deploy them to heroku
rake generate git commit -am "initial commit" git push heroku master
Now you can view your blog site from
We must clone theme from the repository and install to our blog
cd octopress git clone git://github.com/tommy351/Octopress-Theme-Slash.git .themes/slash rake install['slash'] # if you are using zsh you must install like this rake install\['slash'\] rake generate
Of course after these changes, you must commit and push your works to heroku.