Skip to content

Instantly share code, notes, and snippets.

@rhysyngsun
Last active December 15, 2015 09:29
Show Gist options
  • Save rhysyngsun/5238963 to your computer and use it in GitHub Desktop.
Save rhysyngsun/5238963 to your computer and use it in GitHub Desktop.
Only tested for OSX. Run grails with https and bind to your machine's current ip. Be sure to substitute "en1" with the correct network interface.
# Only tested for OSX
# Substitute 'en1' with the correct network interface
alias ip='ifconfig en1 | grep inet | grep -v inet6 | cut -d " " -f 2'
# run this alias
alias grasip='grails run-app -https -Dserver.host=$(ip)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment