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

This commit is contained in:
Starbeamrainbowlabs 2019-10-29 21:22:14 +00:00
parent d7acfd9861
commit f3d7f92cbe
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

4
build
View file

@ -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\"";