Changing default environment in Laravel 4

前端 未结 6 1790
我在风中等你
我在风中等你 2021-02-02 00:35

In Laravel 4 the default configuration environment is \'production\'. This means that if you run an artisan command without the --env option, it assumes the product

6条回答
  •  执笔经年
    2021-02-02 01:21

    $env = $app->detectEnvironment(array(
    
          'staging' => array('baichebao_test'),
          'local' => array('*.local', '*'),
     ));
    

    like my example, put your default environment in the last item of array, and add "*" to it's manager hostname. and it works in laravel 4.X

提交回复
热议问题