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
After the rmv install properly, we need to install ruby
Install Bundler gem
We will clone the repository and make our changes directly in the octopress source codes.
Inside the project, you must run bundle for installing dependencies of octopress gem.
Deploying to Heroku
You must install heroku gem first
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
.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
Now you can view your blog site from
We must clone theme from the repository and install to our blog
Of course after these changes, you must commit and push your works to heroku.