Skip to content

Instantly share code, notes, and snippets.

@rlisowski
Created March 17, 2011 14:33
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 rlisowski/874419 to your computer and use it in GitHub Desktop.
Save rlisowski/874419 to your computer and use it in GitHub Desktop.
start rails server or console
#alias sc='script/console'
function sc (){
if [ -f ./script/rails ]
then
ruby script/rails c
elif [ -f ./script/console ]
then
ruby script/console
else
echo "nie znajdujesz się w katalogu projektu rails"
fi
}
#alias ss='script/server'
alias pass='passenger start'
function ss (){
if [ -f ./script/rails ]
then
ruby script/rails s
elif [ -f ./script/server ]
then
ruby script/server
else
echo "nie znajdujesz się w katalogu projektu rails"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment