Skip to content

Commit 3c42a77

Browse files
committed
deploy script
1 parent f4cdaec commit 3c42a77

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

script/cachecloud-init.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -o nounset
1313
set -o errexit
1414

1515
readonly redisDir="/opt/cachecloud/redis"
16-
readonly redisTarGz="redis-3.0.6.tar.gz"
16+
readonly redisTarGz="redis-3.0.7.tar.gz"
1717

1818

1919
# check if the user exists

script/deploy.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
cachecloud_dir=$1
4+
base_dir=/opt/cachecloud-web
5+
mkdir -p ${base_dir}
6+
mkdir -p ${base_dir}/logs
7+
cp ${cachecloud_dir}/cachecloud/script/start.sh ${base_dir}
8+
cp ${cachecloud_dir}/cachecloud/script/stop.sh ${base_dir}
9+
cp ${cachecloud_dir}/cachecloud/cachecloud-open-web/target/cachecloud-open-web-1.0-SNAPSHOT.war ${base_dir}
10+
cp ${cachecloud_dir}/cachecloud/cachecloud-open-web/src/main/resources/cachecloud-web.conf ${base_dir}/cachecloud-open-web-1.0-SNAPSHOT.conf

0 commit comments

Comments
 (0)