Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Composer scripts #31

Open
pana1990 opened this issue Aug 1, 2017 · 1 comment
Open

Composer scripts #31

pana1990 opened this issue Aug 1, 2017 · 1 comment
Assignees

Comments

@pana1990
Copy link
Contributor

pana1990 commented Aug 1, 2017

Composer script have 300secs timeout by default, i should indicate it in this line :

Once the commands finish simply do the following:

cd your-site-name 
composer start-server // here 

if you executes composer run start-server --timeout=0 it ignore timeout, further details composer/composer#4918.

Other way we can config yii serve in controllerMap property to set docroot by default.

'controllerMap' => [
     'serve' => [
           'class' => 'yii\console\controllers\ServeController',
           'docroot' => '@web',
      ]
],

// then
yii serve // it wors!
@tonydspaniard
Copy link
Member

Thank you @pana1990

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants