From c7dc93e092e8d41db24691ae378e0cc76c5eb648 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 27 Jun 2016 00:28:31 +0200 Subject: [PATCH] fixed CD. --- deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index dfed8b6..1f954e3 100644 --- a/deploy.sh +++ b/deploy.sh @@ -5,7 +5,10 @@ if [ "develop" == "${ENVIRON}" ] ; then echo "Deploying ${CI_BUILD_REF_NAME} to develop. You can access it at .../${CI_BUILD_REF_NAME}" target="${WWW_DEPLOY_ROOT_DEVELOP}/${CI_BUILD_REF_NAME}" mkdir -p "${target}" - cp -a index.html manifest.appcache info resources dist/*.min.* "${target}" + rm -rf "${target}/*" + mkdir "${target}/dist" + cp -a index.html manifest.appcache info resources "${target}" + cp -a dist/*.min.* "${target}/dist" else echo "Automatic deployment to ${ENVIRON} is not yet implemented." fi