Created
March 17, 2011 14:33
-
-
Save rlisowski/874419 to your computer and use it in GitHub Desktop.
start rails server or console
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
#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