Skip to main content

Posts

Showing posts from December, 2013

Grails Deployment on Openshift

Just a simple guide on how to get started on deploying a Grails app up to Openshift. The prerequisites to get started, we need two things being Git and the Openshift RHC tool. Guide on how to install them in different OS platforms are available here . This is only a simple static website developed using Grails. This guide is based off on https://www.openshift.com/blogs/day-6-rapid-web-development-on-the-jvm-with-grails Step 1: Don't bother creating the free app on the Openshift application console. Instead we're gonna use the Openshift RHC command line tool and create the free app. Do this in your user directory: rhc create-app appname tomcat-7 This will create a gear that is assumed to be Jboss EWS 2.0, but it's not. Anyways, assuming that you're not doing any data storing functionality on the Grails app, tomcat-7 is what you need. So let everything being taken cared of for you, and a repo will be cloned based on the appname that yo

Install Git Bash Completion on Mac OS X

Bash completion for Git isn't available by default on the Mac's Terminal. So you have to assign it yourself in the environment path setup. By default your git directory should be at /usr/local/git in Mac. Assuming you're at your user directory: Step 1: sudo nano .bash_profile Step 2: add the line  source /usr/local/git/contrib/completion/git-completion.bash Ctrl+X to save, Ctrl+Y to save file name. Step 3: source .bash_profile Logout and Login again.