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

Conversation

dariocravero
Copy link
Contributor

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?

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?
rstacruz added a commit that referenced this pull request Aug 14, 2012
Cleanup fails to cd releases_path
@rstacruz rstacruz merged commit 3c6e718 into mina-deploy:master Aug 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants