Wednesday, November 20, 2013

deploy a grails app on heroku using git

  1. cd <project-root-directory>
  2. grails run-app
  3. git init
  4. git add application.properties grails-app test web-app lib --force
  5. git commit -m init
  6. git push heroku master

how to install a third-party app you have binary for, to /usr/bin debian

  1. update-alternatives --install "/usr/bin/<app-name>" "<app-name>" "<full-path-to-app-executable>" 1
  2. update-alternatives --config <app-name>
For example assuming you are going to install an unzipped package of netbeans located in /opt/netbeans-7.4 :
  1.  update-alternatives --install "/usr/bin/netbeans" "netbeans" "/opt/netbeans-7.4/bin/netbeans" 1
  2. update-alternatives --config netbeans