In past few days I decided that I would like to keep track on my progress in how I learn new stuff. After some consideration I hope a good way to organize my work would be to use Ghost: is just a blogging platform funded on Kickstarter last year. I have heard all the hype when Ghost got funded and tried to use it early on, but it was disaster to when it was first released. Also, I didn't have a good use case to keep working at it, but now... here is an opportunity.
Quick googling ghost resulted in number of links as a community seem to be sprouting around it. I read a good introduction on setting it up and on its current features on "Ghost for Beginners". The site covers how to set Ghost on Ghost(PRO), AWS and DigitalOcean, but there was nothing about my favorite hosting solution - OpenShift. So I figured I can write a post on setting Ghost on OpenShift.
At first I tried to set it up using OpenShift's console, but that yielded in an error:
Attempting to install through web interface failed twice, I was a bit discouraged, so finally I attempted to try running rhc command from terminal. That worked like a charm:
rhc app create ghost nodejs-0.10 --env NODE_ENV=production --from-code https://github.com/openshift-quickstart/openshift-ghost-quickstart.git
And here is terminal output:
Application Options
-------------------
Domain: _MY_DOMAIN_
Cartridges: nodejs-0.10
Source Code: https://github.com/openshift-quickstart/openshift-ghost-quickstart.git
Gear Size: default
Scaling: no
Environment Variables: NODE_ENV=production
Creating application 'ghost' ... done
Waiting for your DNS name to be available ... done
Cloning into 'ghost'...
The authenticity of host 'ghost-_MY_DOMAIN_.rhcloud.com (54.82.127.129)' can't be established.
RSA key fingerprint is cf:ee:77:cb:0e:fc:02:d7:72:7e:ae:80:c0:90:88:a7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ghost-_MYDOMAIN_.rhcloud.com,54.82.127.129' (RSA) to the list of known hosts.
Your application 'ghost' is now available.
URL: http://ghost-_MY_DOMAIN_.rhcloud.com/
SSH to: 53fba91d5004466ac7000306@ghost-_MY_DOMAIN_.rhcloud.com
Git remote: ssh://53fba91d5004466ac7000306@ghost-_MY_DOMAIN_.rhcloud.com/~/git/ghost.git/
Cloned to: /Users/_MY_USER_/Source/ghost
Run 'rhc show-app ghost' for more details about your app.
Ghost correctly appears in the console after that:
Here is a snapshot of Ghost homepage:
I added the user, and published test post: