fix: read env from config, bc of cache

This commit is contained in:
Andras Bacsai 2023-05-03 08:55:03 +02:00
parent 22028e23e3
commit e20cdd83f8
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class PublicGitRepository extends Component
];
public function mount()
{
if (env('APP_ENV') === 'local') {
if (config('app.env') === 'local') {
$this->public_repository_url = 'https://github.com/coollabsio/coolify-examples/tree/nodejs-fastify';
$this->port = 3000;
}

View File

@ -18,7 +18,7 @@
@if (data_get($application, 'ports_mappings_array'))
@foreach ($application->ports_mappings_array as $port)
@if (env('APP_ENV') === 'local')
@if (config('app.env') === 'local')
<a target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">Open
{{ explode(':', $port)[0] }}</a>
@else