voceconnect / grunt-composer

A grunt wrapper for composer
17 stars 5 forks source link

Multi target mode not working #27

Open mniepieklo opened 5 years ago

mniepieklo commented 5 years ago

Hi, I'm using latest version of your plugin, but I can't get multi target mode into work. Here's my config:

composer: {
            options: {
                composerLocation: 'composer'
            },
            deploy: {
                options: {
                    cwd: './build'
                }
            },
            staging : {
                options : {
                    cwd: './'
                }
            }
        },

and a get error in result:

Running "composer:deploy:install" (composer) task
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug

  [InvalidArgumentException]        
  Command "deploy" is not defined.  

Warning: Task "composer:deploy:install" failed. Use --force to continue.

It looks like it runs: composer deploy --install