From a117c1fa08234ff41e7a31fded73724bf66bc8b3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 Mar 2019 10:05:38 +0800 Subject: [PATCH] init --- boundle.sh | 10 +++++ reload.sh | 1 + restart.sh | 1 + webapp/bootstrap/config_loader.php | 54 +++++++++++++++++++++++ webapp/bootstrap/init.php | 6 +++ webapp/controller/OpsController.class.php | 1 + webapp/index.php | 24 ++++++++++ webapp/phpcommon | 1 + 8 files changed, 98 insertions(+) create mode 100755 boundle.sh create mode 100644 reload.sh create mode 100644 restart.sh create mode 100644 webapp/bootstrap/config_loader.php create mode 100644 webapp/bootstrap/init.php create mode 120000 webapp/controller/OpsController.class.php create mode 100644 webapp/index.php create mode 120000 webapp/phpcommon diff --git a/boundle.sh b/boundle.sh new file mode 100755 index 0000000..479bb6f --- /dev/null +++ b/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 reload.sh restart.sh diff --git a/reload.sh b/reload.sh new file mode 100644 index 0000000..6941f67 --- /dev/null +++ b/reload.sh @@ -0,0 +1 @@ +echo 'success' diff --git a/restart.sh b/restart.sh new file mode 100644 index 0000000..6941f67 --- /dev/null +++ b/restart.sh @@ -0,0 +1 @@ +echo 'success' diff --git a/webapp/bootstrap/config_loader.php b/webapp/bootstrap/config_loader.php new file mode 100644 index 0000000..e85f138 --- /dev/null +++ b/webapp/bootstrap/config_loader.php @@ -0,0 +1,54 @@ +$a();'); +} catch (Exception $e){ + echo($e); +} diff --git a/webapp/phpcommon b/webapp/phpcommon new file mode 120000 index 0000000..49f20ff --- /dev/null +++ b/webapp/phpcommon @@ -0,0 +1 @@ +../third_party/phpcommon \ No newline at end of file