Compare commits
No commits in common. "901f301f9b9ae9acd30b26f4bf7f096fdeaa4840" and "5822a209edbb29e47784cfa778e6ba66482e7c16" have entirely different histories.
901f301f9b
...
5822a209ed
4
piston
4
piston
|
@ -17,7 +17,7 @@ docker_compose(){
|
||||||
init_precommit() {
|
init_precommit() {
|
||||||
if [ $PISTON_ENV == "dev" ]; then
|
if [ $PISTON_ENV == "dev" ]; then
|
||||||
rm -f .git/hooks/pre-commit
|
rm -f .git/hooks/pre-commit
|
||||||
ln -s "$PISTON_PATH/pre-commit" "$PISTON_PATH/.git/hooks/pre-commit"
|
ln -s $(realpath $(dirname "$0"))/pre-commit .git/hooks/pre-commit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,6 +67,8 @@ case $1 in
|
||||||
restart) docker_compose restart ;;
|
restart) docker_compose restart ;;
|
||||||
start)
|
start)
|
||||||
init_precommit
|
init_precommit
|
||||||
|
rm -f .git/hooks/pre-commit
|
||||||
|
ln -s "$PISTON_PATH/pre-commit" "$PISTON_PATH/.git/hooks/pre-commit"
|
||||||
docker_compose up -d
|
docker_compose up -d
|
||||||
;;
|
;;
|
||||||
stop) docker_compose down ;;
|
stop) docker_compose down ;;
|
||||||
|
|
Loading…
Reference in New Issue