Skip to content

Commit

Permalink
Herokuデプロイのための設定
Browse files Browse the repository at this point in the history
  • Loading branch information
ryotamedx committed Sep 19, 2021
1 parent d82bd01 commit b5bea34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: vendor/bin/heroku-php-apache2 public/
2 changes: 1 addition & 1 deletion app/Http/Middleware/TrustProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TrustProxies extends Middleware
*
* @var array|string|null
*/
protected $proxies;
protected $proxies = '*';

/**
* The headers that should be used to detect proxies.
Expand Down
4 changes: 1 addition & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
|
*/

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

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

0 comments on commit b5bea34

Please sign in to comment.