Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup fails to cd releases_path #45

Merged
merged 1 commit into from
Aug 14, 2012

Commits on Aug 12, 2012

  1. Cleanup fails to cd releases_path

    For some strange reason having cleanup cd to deploy_to and then releases_path makes the deploy fail: it can't find the releases_path directory.
    
    -----> Cleaning up old releases (keeping 3)
           $ cd "/exordo-dev/instances/d0000052" || exit 15
           $ cd "releases" || exit 16
     !     ERROR: Deploy failed.
    
    When cd is combined in one command it just works fine:
    
    -----> Cleaning up old releases (keeping 3)
           $ cd "/exordo-dev/instances/d0000052/releases" || exit 15
           $ count=0
           $ remove=0
           $ ls -1d [0-9]* | sort -rn | tail -n  | xargs rm -rf {}
    
    -----> Build finished
    
    In this case, deploy:cleanup is called at the end of the deploy task.
    
    Am I doing something wrong or is it a bug?
    Darío Javier Cravero committed Aug 12, 2012
    Configuration menu
    Copy the full SHA
    7cb8b87 View commit details
    Browse the repository at this point in the history