fix: read env from config, bc of cache
This commit is contained in:
		@@ -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;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user