Skip to content

Instantly share code, notes, and snippets.

View arthur-feral's full-sized avatar

Arthour arthur-feral

View GitHub Profile

Keybase proof

I hereby claim:

  • I am arthur-feral on github.
  • I am arthurferal (https://keybase.io/arthurferal) on keybase.
  • I have a public key ASDbvvWmkYmun7iQ1X6m979a74xKnXGEOamgT_8WqPQgbwo

To claim this, I am signing this object:

#!/bin/bash
APP_NAME="your-app-name-goes-here"
APP_PATH=/home/deploy/${APP_NAME}
# Production environment
export RAILS_ENV="production"
# This loads RVM into a shell session. Uncomment if you're using RVM system wide.
# [[ -s "/usr/local/lib/rvm" ]] && . "/usr/local/lib/rvm"
@arthur-feral
arthur-feral / post-receive
Created November 23, 2014 20:56
Git hook for deploying rails application
#!/bin/bash -l
APP_NAME="rpi_server"
APP_PATH=/home/pi/Web/${APP_NAME}
GIT_PATH=/home/pi/usbdrv/${APP_NAME}.git
# Production environment
export RAILS_ENV="production"
echo "[DEPLOY] - Updating application working tree"
git --work-tree=${APP_PATH} --git-dir=${GIT_PATH} checkout -f