Skip to content

Instantly share code, notes, and snippets.

@nahid
Last active August 8, 2018 09:51
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 nahid/75fe7e2f48e2b68f267c86b1aa7d8d9b to your computer and use it in GitHub Desktop.
Save nahid/75fe7e2f48e2b68f267c86b1aa7d8d9b to your computer and use it in GitHub Desktop.
Development Environment
# 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"
# 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