This repository was archived by the owner on Mar 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 196
Deploy is using tar when there is no rsync #284
Copy link
Copy link
Open
Description
So I spent couple of hours debugging why the deploy works differently when launched from local vs from CI.
Turned out the docker image I was using on CI was missing rsync.
As rsync is listed in dependencies I would expected some error, but instead shipit uses tar:
# when no rsync is installed
Copy project to remote servers.
"copy" method is deprecated, please use "copyToRemote", "copyFromRemote", "scpCopyToRemote" or "scpCopyFromRemote". It will break in v5.0.0.
Running "mkdir -p /var/apps/myapp/releases/20210721062223" on host "207.154.247.89".
Running "cd /var/apps/myapp/releases/20210721062223 && tar -xzf tmp-398FN6d3fh21UK.tar.gz" on host "207.154.247.89".
Running "cd /var/apps/myapp/releases/20210721062223 && rm tmp-398FN6d3fh21UK.tar.gz" on host "207.154.247.89".
Finished copy.
# when rsync is installed
Copy project to remote servers.
"copy" method is deprecated, please use "copyToRemote", "copyFromRemote", "scpCopyToRemote" or "scpCopyFromRemote". It will break in v5.0.0.
Copy "/tmp/tmp-338fW2hhc27GEJS/" to "[email protected]:/var/apps/myapp/releases/20210721063312" via rsync
Finished copy.
When tar is used, the release is deployed not directly in "current" dir, but in "current/tmp-sdgf2342".
I'm not sure if this is a bug, but perhaps this will save someone some time.
sestrella
Metadata
Metadata
Assignees
Labels
No labels