From f985573ad66487cefcbec026651270ec5fc568c2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 4 Jul 2018 16:17:23 +0800 Subject: [PATCH] add scripts directory --- scripts/publish_php/boundle.sh | 10 ++++++++++ scripts/publish_php/reload.sh | 1 + scripts/publish_php/restart.sh | 1 + 3 files changed, 12 insertions(+) create mode 100755 scripts/publish_php/boundle.sh create mode 100644 scripts/publish_php/reload.sh create mode 100644 scripts/publish_php/restart.sh diff --git a/scripts/publish_php/boundle.sh b/scripts/publish_php/boundle.sh new file mode 100755 index 0000000..61207f6 --- /dev/null +++ b/scripts/publish_php/boundle.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +tag_name=`git status |grep '# On branch '|sed 's/# On branch //g'` +dir_name=`basename $PWD` +package_name=${dir_name}.tar.gz +#echo $tag_name +#echo $dir_name +#echo $package_name + +tar --exclude=*.git -chzf target/${package_name} webapp config diff --git a/scripts/publish_php/reload.sh b/scripts/publish_php/reload.sh new file mode 100644 index 0000000..6941f67 --- /dev/null +++ b/scripts/publish_php/reload.sh @@ -0,0 +1 @@ +echo 'success' diff --git a/scripts/publish_php/restart.sh b/scripts/publish_php/restart.sh new file mode 100644 index 0000000..6941f67 --- /dev/null +++ b/scripts/publish_php/restart.sh @@ -0,0 +1 @@ +echo 'success'