Created
July 11, 2012 11:03
-
-
Save kanedo/3089702 to your computer and use it in GitHub Desktop.
Gitlab Thin Deamontools Skript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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