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

Default :composer_working_dir broken #36

Closed
oliviertassinari opened this issue Mar 2, 2015 · 4 comments
Closed

Default :composer_working_dir broken #36

oliviertassinari opened this issue Mar 2, 2015 · 4 comments

Comments

@oliviertassinari
Copy link

No description provided.

@oliviertassinari oliviertassinari changed the title withing release path is broken within release path is broken Mar 2, 2015
@oliviertassinari oliviertassinari changed the title within release path is broken Default :composer_working_dir broken Mar 2, 2015
@swalkinshaw
Copy link
Member

Closing since there's no content.

@Clindbergh
Copy link

Running

cap production deploy

works fine. However if I try to run composer separately (via cap production composer:install), it fails.

This seems to be due to :composer_working_dir, since it's evaluated to be empty within this context.

DEBUG [c8520f3a] Running /usr/bin/env if test ! -d; then echo "Directory does not exist ''" 1>&2; false; fi as deployer@127.0.0.1
DEBUG [c8520f3a] Command: if test ! -d; then echo "Directory does not exist ''" 1>&2; false; fi
DEBUG [c8520f3a] Finished in 0.552 seconds with exit status 0 (successful).
INFO [7f562ed7] Running /usr/bin/env composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader as deployer@127.0.0.1
DEBUG [7f562ed7] Command: cd  && ( SYMFONY_ENV=prod /usr/bin/env composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader )
                           ^^^

@oliviertassinari
Copy link
Author

I have the same error if I comment this line in my cap file

set :composer_working_dir, -> { fetch(:release_path) }

@Clindbergh
Copy link

This is actually the default in version >=0.0.5 as of 1d898fd.

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

No branches or pull requests

3 participants