Skip to content

Commit b5bea34

Browse files
committed
Herokuデプロイのための設定
1 parent d82bd01 commit b5bea34

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: vendor/bin/heroku-php-apache2 public/

app/Http/Middleware/TrustProxies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TrustProxies extends Middleware
1212
*
1313
* @var array|string|null
1414
*/
15-
protected $proxies;
15+
protected $proxies = '*';
1616

1717
/**
1818
* The headers that should be used to detect proxies.

routes/web.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
|
1414
*/
1515

16-
Route::get('/', function () {
17-
return view('welcome');
18-
});
16+
Route::get('/', [App\Http\Controllers\ItemController::class, 'index']);
1917

2018
Route::resource('items', App\Http\Controllers\ItemController::class);

0 commit comments

Comments
 (0)