mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-22 10:25:01 +00:00
Bugfix: Conditionally create the beta/ symlink on the master branch
This commit is contained in:
parent
d7acfd9861
commit
f3d7f92cbe
1 changed files with 4 additions and 0 deletions
4
build
4
build
|
@ -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…
Reference in a new issue