Delete the cache when deploying a new version

This commit is contained in:
Starbeamrainbowlabs 2019-06-21 15:52:22 +01:00
parent b2a42729c0
commit 31bf42fb2e
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

1
build
View file

@ -363,6 +363,7 @@ SFTPCOMMANDS
echo "mv \"${deploy_root_dir}/www\" \"${deploy_root_dir}/www-old\""; echo "mv \"${deploy_root_dir}/www\" \"${deploy_root_dir}/www-old\"";
echo "mv \"${deploy_root_dir}/www-new\" \"${deploy_root_dir}/www\""; echo "mv \"${deploy_root_dir}/www-new\" \"${deploy_root_dir}/www\"";
echo "rm -r \"../data/cache\"";
echo "rm -r \"${deploy_root_dir}/www-old\""; echo "rm -r \"${deploy_root_dir}/www-old\"";
echo "bye"; echo "bye";
) >"${lftp_commands_filename}"; ) >"${lftp_commands_filename}";