This commit is contained in:
Andras Bacsai
2023-06-16 11:01:27 +02:00
parent 2b8467e6a1
commit 2c3ddfd363
14 changed files with 35 additions and 18 deletions

View File

@@ -50,7 +50,7 @@ class GithubPrivateRepositoryDeployKey extends Component
];
public function mount()
{
if (config('app.env') === 'local') {
if (isDev()) {
$this->repository_url = 'https://github.com/coollabsio/coolify-examples';
}
$this->parameters = getRouteParameters();

View File

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

View File

@@ -14,7 +14,7 @@ class InviteLink extends Component
public string $role = 'member';
public function mount()
{
$this->email = config('app.env') === 'local' ? 'test3@example.com' : '';
$this->email = isDev() ? 'test3@example.com' : '';
}
public function viaEmail()
{

View File

@@ -16,7 +16,7 @@ class Upgrade extends Component
$latestVersion = get_latest_version_of_coolify();
$currentVersion = config('version');
version_compare($currentVersion, $latestVersion, '<') ? $this->isUpgradeAvailable = true : $this->isUpgradeAvailable = false;
if (config('app.env') === 'local') {
if (isDev()) {
$this->isUpgradeAvailable = true;
}
}