rm init_db

This commit is contained in:
hophacker 2021-01-03 00:46:52 +08:00
parent 2f2c95568f
commit 70b088136b
2 changed files with 0 additions and 17 deletions

View File

@ -132,22 +132,6 @@ function swap() {
mv $TMPFILE "$2"
fi
}
function init_db() {
SERVICE=server
while getopts ":s:" o; do
case "${o}" in
s)
SERVICE=${OPTARG}
;;
*)
echo "Usage: init_db [-s SERVICE]"
return
;;
esac
done
dc exec $SERVICE rails db:drop db:create db:migrate db:seed
}
function cmd_exists() {
$* &> /dev/null
if [[ $? == 0 ]]; then

View File

@ -149,6 +149,5 @@ function kubectl() {
esac
done
[[ $DEBUG == "true" ]] && echo "kubectl --kubeconfig=$HOME/.kube/${KCONTEXT}_config $finalopts"
echo "kubectl --kubeconfig=$HOME/.kube/${KCONTEXT}_config $finalopts"
command kubectl --kubeconfig=$HOME/.kube/${KCONTEXT}_config $finalopts
}