Skip to content

Instantly share code, notes, and snippets.

@kanedo
Created July 11, 2012 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanedo/3089702 to your computer and use it in GitHub Desktop.
Save kanedo/3089702 to your computer and use it in GitHub Desktop.
Gitlab Thin Deamontools Skript
#!/bin/bash
# This is needed to find gems installed with --user-install
export USER=kanedo
export HOME=/home/kanedo
# Include our profile to get Ruby 1.9.2 included in our PATH (via rvm)
. $HOME/.bash_profile
export PORT=<Port>
# Get into the project directory and start the Rails server
cd $HOME/gitlab
. ~/.rvm/scripts/rvm rvm use 1.9.2 #use RVM 1.9.2
exec thin start --environment production --port $PORT 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment