Compare commits
2 Commits
5822a209ed
...
901f301f9b
Author | SHA1 | Date |
---|---|---|
Thomas Hobson | 901f301f9b | |
Brikaa | dfd6beb6ed |
4
piston
4
piston
|
@ -17,7 +17,7 @@ docker_compose(){
|
|||
init_precommit() {
|
||||
if [ $PISTON_ENV == "dev" ]; then
|
||||
rm -f .git/hooks/pre-commit
|
||||
ln -s $(realpath $(dirname "$0"))/pre-commit .git/hooks/pre-commit
|
||||
ln -s "$PISTON_PATH/pre-commit" "$PISTON_PATH/.git/hooks/pre-commit"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -67,8 +67,6 @@ case $1 in
|
|||
restart) docker_compose restart ;;
|
||||
start)
|
||||
init_precommit
|
||||
rm -f .git/hooks/pre-commit
|
||||
ln -s "$PISTON_PATH/pre-commit" "$PISTON_PATH/.git/hooks/pre-commit"
|
||||
docker_compose up -d
|
||||
;;
|
||||
stop) docker_compose down ;;
|
||||
|
|
Loading…
Reference in New Issue