mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
Move comment
This commit is contained in:
parent
4cacba2afb
commit
6f5ae0e2c5
1 changed files with 2 additions and 2 deletions
4
build
4
build
|
@ -312,7 +312,6 @@ task_deploy() {
|
||||||
# Acquire an exclusive project-wide lock so that we only upload stuff one-at-a-time
|
# Acquire an exclusive project-wide lock so that we only upload stuff one-at-a-time
|
||||||
exec 9<"${WORKSPACE}";
|
exec 9<"${WORKSPACE}";
|
||||||
flock --exclusive 9;
|
flock --exclusive 9;
|
||||||
# We have an extra : before the @ here to avoid the password prompt
|
|
||||||
|
|
||||||
# Actions:
|
# Actions:
|
||||||
# 1. Connect to remote server
|
# 1. Connect to remote server
|
||||||
|
@ -322,9 +321,10 @@ task_deploy() {
|
||||||
# 5. Delete old directory
|
# 5. Delete old directory
|
||||||
(
|
(
|
||||||
echo "set sftp:connect-program 'ssh -x -i \"${SSH_KEY_PATH}\" -p \"${deploy_ssh_port}\" -o \"PasswordAuthentication=no\"'";
|
echo "set sftp:connect-program 'ssh -x -i \"${SSH_KEY_PATH}\" -p \"${deploy_ssh_port}\" -o \"PasswordAuthentication=no\"'";
|
||||||
|
# We have an extra : before the @ here to avoid the password prompt
|
||||||
echo "connect sftp://${deploy_ssh_user}:@${deploy_ssh_host}";
|
echo "connect sftp://${deploy_ssh_user}:@${deploy_ssh_host}";
|
||||||
|
|
||||||
echo "mirror -R -P 3 -r \"${source_upload_dir}\" \"${deploy_root_dir}/www-new\""
|
echo "mirror -R -P 3 -r \"${source_upload_dir}\" \"${deploy_root_dir}/www-new\"";
|
||||||
echo "ln -s \"${deploy_root_dir}/data\" \"${deploy_root_dir}/www-new/data\"";
|
echo "ln -s \"${deploy_root_dir}/data\" \"${deploy_root_dir}/www-new/data\"";
|
||||||
|
|
||||||
echo "mv \"${deploy_root_dir}/www\" \"${deploy_root_dir}/www-old\"";
|
echo "mv \"${deploy_root_dir}/www\" \"${deploy_root_dir}/www-old\"";
|
||||||
|
|
Loading…
Reference in a new issue