Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
APP_URL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paramtamtam committed Apr 26, 2018
1 parent cfe91ec commit 4861e87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/Providers/ConfigsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public function register()
}

// Allow APP_URL
$app->make('url')->forceRootUrl(config('app.url'));
if (! empty($app_url = config('app.url'))) {
$app->make('url')->forceRootUrl($app_url);
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
| your application so that it is used when running Artisan tasks.
|
*/
'url' => env('APP_URL', 'http://localhost'),
'url' => env('APP_URL'),

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ services:
LIMIT_SOURCE_LIFE_SIZE: 2048
LIMIT_SOURCE_URI_LENGTH: 256
EXCLUDED_SOURCES_PROTOCOLS: 'http,https,ftp'
APP_URL: 'http://mydomain3.com'
#APP_URL: 'http://mydomain3.com'
ports:
- "8000:80"

0 comments on commit 4861e87

Please sign in to comment.