瀏覽代碼

Fix env

tags/4.0.15.1
Steevan BARBOYON 8 年之前
父節點
當前提交
24d4d6ff07
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      init_benchmark.sh
  2. 1
    1
      public/index.php

+ 1
- 1
init_benchmark.sh 查看文件

15
 }
15
 }
16
 
16
 
17
 function init() {
17
 function init() {
18
-    export APP_ENV=$2
18
+    export APP_ENV='prod'
19
 
19
 
20
     clearCacheAndLogs
20
     clearCacheAndLogs
21
 
21
 

+ 1
- 1
public/index.php 查看文件

5
 
5
 
6
 require __DIR__ . '/../vendor/autoload.php';
6
 require __DIR__ . '/../vendor/autoload.php';
7
 
7
 
8
-$kernel = new Kernel('helloworld', false);
8
+$kernel = new Kernel('prod', false);
9
 $request = Request::createFromGlobals();
9
 $request = Request::createFromGlobals();
10
 $response = $kernel->handle($request);
10
 $response = $kernel->handle($request);
11
 $response->send();
11
 $response->send();

Loading…
取消
儲存