xuwupeng2000/capistrano-scm-gitcopy

Wrong usage of application symbol

Closed this issue · 3 comments

I'm not sure if this is NOT a Capistrano issue. But since everything used to work fine in staging before implementing scm-gitcopy into production I will post it here.

In my deploy.rb my application symbol is set to:

set :application, 'Semcoglas'
set :deploy_to, '/var/www/semcoweb'

I always regarded application as App name.

When I run cap production deploy everything works fine so far. All paths are used correctly based on the deploy_to symbol.

But then, when Composer is supposed to run, the path suddenly changes to /var/www/Semcoglas <- name of the :application symbol.

Of course I get a _Could not open file: /var/www/Semcoglas/shared/composer.phar_ error.

I tried without defining :application and indeed the wrong path will become /var/www/shared/....

Any idea what is happening here?

Have you come across this issue before @leehambley? Maybe you can confirm if this issue is directly related to @capistrano? Thanks

I've not seen this one before @webdevilopers - Sounds like the capistrano-composer Gem has a problem?

Okay, since there is no other feedback by @xuwupeng2000 I'm gonna move this issue there. Thanks for the feedback @leehambley !