Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Deply fails if the previous build directory has been removed manually #213

Open
richrd opened this issue Aug 29, 2018 · 4 comments
Open
Labels

Comments

@richrd
Copy link

richrd commented Aug 29, 2018

Could it just ignore the previous releases if they don't exist? This is the error that occurs:

Error: Command failed: ssh -i /home/user/.ssh/id_rsa [email protected] "cp -a /var/www/project/releases/20180829065949/. /var/www/project/releases/20180829113223"
cp: cannot stat '/var/www/project/releases/20180829065949/.': No such file or directory

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
@gregberge
Copy link
Member

I think we could do it. I am open to a PR for that.

@gregberge gregberge added the feat label Sep 4, 2018
@richrd
Copy link
Author

richrd commented Sep 5, 2018

Great! How should this be done? Maybe we could add a flag something like ignoreErrors to remote, and use that here?

This is what I'm refering to with remote

async remote(command, options) {

@utkarsh-dixit
Copy link

Was this issue resolved? If not I'd like to fix it.

@gregberge
Copy link
Member

@utkarsh-dixit no it is not resolved, feel free to fix it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants