Last active
August 8, 2018 09:51
-
-
Save nahid/75fe7e2f48e2b68f267c86b1aa7d8d9b to your computer and use it in GitHub Desktop.
Development Environment
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 phpgo="php -S localhost:8000" | |
alias art="php artisan" | |
# docker-compose | |
alias dc="docker-compose" | |
# docker-compose exec | |
alias dce="docker-compose exec" | |
# kubectl for kubernetes | |
alias kc="kubectl" | |
# kubectl exec for kubernetes | |
alias kce="kubectl exec" |
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
# serve php application | |
phpgo() { | |
port=${1:-8000} | |
opt=$2 | |
directory=$3 | |
php -S localhost:$port $opt "$directory" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment