Browse Source

Bugfix: Conditionally create the beta/ symlink on the master branch

bugfix/performance
Starbeamrainbowlabs 3 years ago
parent
commit
f3d7f92cbe
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 4
      build

4
build

@ -378,6 +378,10 @@ SFTPCOMMANDS @@ -378,6 +378,10 @@ SFTPCOMMANDS
echo "ln -s \"../data\" \"${deploy_root_dir}/www-new/data\"";
if [ "${GIT_REF_NAME}" == "refs/heads/master" ]; then
echo "ln -s \"../../Air-Quality-Web-Beta/\" \"${deploy_root_dir}/www-new/beta\"";
fi
echo "mv \"${deploy_root_dir}/www\" \"${deploy_root_dir}/www-old\"";
echo "mv \"${deploy_root_dir}/www-new\" \"${deploy_root_dir}/www\"";
echo "rm -r \"${deploy_root_dir}/data/cache\"";

Loading…
Cancel
Save