Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update version numbers and database URLs

Andras Bacsai88e407756dc1
diff --git a/app/Http/Livewire/Project/Database/Mariadb/General.php b/app/Http/Livewire/Project/Database/Mariadb/General.php
index 11b5fc42b3..173e9290fe 100644
--- a/app/Http/Livewire/Project/Database/Mariadb/General.php
+++ b/app/Http/Livewire/Project/Database/Mariadb/General.php
@@ -13,7 +13,8 @@ class General extends Component
protected $listeners = ['refresh'];
public StandaloneMariadb $database;
- public string $db_url;
+ public ?string $db_url = null;
+ public ?string $db_url_public = null;
protected $rules = [
'database.name' => 'required',
@@ -41,6 +42,14 @@ class General extends Component
'database.is_public' => 'Is Public',
'database.public_port' => 'Public Port',
];
+
+ public function mount()
+ {
+ $this->db_url = $this->database->getDbUrl(true);
+ if ($this->database->is_public) {
+ $this->db_url_public = $this->database->getDbUrl();
+ }
+ }
public function submit()
{
try {
@@ -69,12 +78,13 @@ class General extends Component
return;
}
StartDatabaseProxy::run($this->database);
+ $this->db_url_public = $this->database->getDbUrl();
$this->emit('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
+ $this->db_url_public = null;
$this->emit('success', 'Database is no longer publicly accessible.');
}
- $this->db_url = $this->database->getDbUrl();
$this->database->save();
} catch (\Throwable $e) {
$this->database->is_public = !$this->database->is_public;
@@ -86,11 +96,6 @@ class General extends Component
$this->database->refresh();
}
- public function mount()
- {
- $this->db_url = $this->database->getDbUrl();
- }
-
public function render()
{
return view('livewire.project.database.mariadb.general');
diff --git a/app/Http/Livewire/Project/Database/Mongodb/General.php b/app/Http/Livewire/Project/Database/Mongodb/General.php
index ce0ff14eaa..189f2632ea 100644
--- a/app/Http/Livewire/Project/Database/Mongodb/General.php
+++ b/app/Http/Livewire/Project/Database/Mongodb/General.php
@@ -13,7 +13,8 @@ class General extends Component
protected $listeners = ['refresh'];
public StandaloneMongodb $database;
- public string $db_url;
+ public ?string $db_url = null;
+ public ?string $db_url_public = null;
protected $rules = [
'database.name' => 'required',
@@ -39,6 +40,15 @@ class General extends Component
'database.is_public' => 'Is Public',
'database.public_port' => 'Public Port',
];
+
+ public function mount()
+ {
+ $this->db_url = $this->database->getDbUrl(true);
+ if ($this->database->is_public) {
+ $this->db_url_public = $this->database->getDbUrl();
+ }
+ }
+
public function submit()
{
try {
@@ -70,12 +80,13 @@ class General extends Component
return;
}
StartDatabaseProxy::run($this->database);
+ $this->db_url_public = $this->database->getDbUrl();
$this->emit('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
+ $this->db_url_public = null;
$this->emit('success', 'Database is no longer publicly accessible.');
}
- $this->db_url = $this->database->getDbUrl();
$this->database->save();
} catch (\Throwable $e) {
$this->database->is_public = !$this->database->is_public;
@@ -87,11 +98,6 @@ class General extends Component
$this->database->refresh();
}
- public function mount()
- {
- $this->db_url = $this->database->getDbUrl();
- }
-
public function render()
{
return view('livewire.project.database.mongodb.general');
diff --git a/app/Http/Livewire/Project/Database/Mysql/General.php b/app/Http/Livewire/Project/Database/Mysql/General.php
index 416970ea94..cb1a063dbc 100644
--- a/app/Http/Livewire/Project/Database/Mysql/General.php
+++ b/app/Http/Livewire/Project/Database/Mysql/General.php
@@ -13,7 +13,8 @@ class General extends Component
protected $listeners = ['refresh'];
public StandaloneMysql $database;
- public string $db_url;
+ public ?string $db_url = null;
+ public ?string $db_url_public = null;
protected $rules = [
'database.name' => 'required',
@@ -41,6 +42,14 @@ class General extends Component
'database.is_public' => 'Is Public',
'database.public_port' => 'Public Port',
];
+
+ public function mount()
+ {
+ $this->db_url = $this->database->getDbUrl(true);
+ if ($this->database->is_public) {
+ $this->db_url_public = $this->database->getDbUrl();
+ }
+ }
public function submit()
{
try {
@@ -69,12 +78,13 @@ class General extends Component
return;
}
StartDatabaseProxy::run($this->database);
+ $this->db_url_public = $this->database->getDbUrl();
$this->emit('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
+ $this->db_url_public = null;
$this->emit('success', 'Database is no longer publicly accessible.');
}
- $this->db_url = $this->database->getDbUrl();
$this->database->save();
} catch (\Throwable $e) {
$this->database->is_public = !$this->database->is_public;
@@ -86,11 +96,6 @@ class General extends Component
$this->database->refresh();
}
- public function mount()
- {
- $this->db_url = $this->database->getDbUrl();
- }
-
public function render()
{
return view('livewire.project.database.mysql.general');
diff --git a/app/Http/Livewire/Project/Database/Postgresql/General.php b/app/Http/Livewire/Project/Database/Postgresql/General.php
index 7872764e3b..7292ec2b21 100644
--- a/app/Http/Livewire/Project/Database/Postgresql/General.php
+++ b/app/Http/Livewire/Project/Database/Postgresql/General.php
@@ -15,7 +15,8 @@ class General extends Component
public StandalonePostgresql $database;
public string $new_filename;
public string $new_content;
- public string $db_url;
+ public ?string $db_url = null;
+ public ?string $db_url_public = null;
protected $listeners = ['refresh', 'save_init_script', 'delete_init_script'];
@@ -49,7 +50,10 @@ class General extends Component
];
public function mount()
{
- $this->db_url = $this->database->getDbUrl();
+ $this->db_url = $this->database->getDbUrl(true);
+ if ($this->database->is_public) {
+ $this->db_url_public = $this->database->getDbUrl();
+ }
}
public function instantSave()
{
@@ -66,12 +70,13 @@ class General extends Component
return;
}
StartDatabaseProxy::run($this->database);
+ $this->db_url_public = $this->database->getDbUrl();
$this->emit('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
+ $this->db_url_public = null;
$this->emit('success', 'Database is no longer publicly accessible.');
}
- $this->db_url = $this->database->getDbUrl();
$this->database->save();
} catch (\Throwable $e) {
$this->database->is_public = !$this->database->is_public;
diff --git a/app/Http/Livewire/Project/Database/Redis/General.php b/app/Http/Livewire/Project/Database/Redis/General.php
index dd2e8151da..834a9f3812 100644
--- a/app/Http/Livewire/Project/Database/Redis/General.php
+++ b/app/Http/Livewire/Project/Database/Redis/General.php
@@ -13,7 +13,8 @@ class General extends Component
protected $listeners = ['refresh'];
public StandaloneRedis $database;
- public string $db_url;
+ public ?string $db_url = null;
+ public ?string $db_url_public = null;
protected $rules = [
'database.name' => 'required',
@@ -35,6 +36,13 @@ class General extends Component
'database.is_public' => 'Is Public',
'database.public_port' => 'Public Port',
];
+ public function mount()
+ {
+ $this->db_url = $this->database->getDbUrl(true);
+ if ($this->database->is_public) {
+ $this->db_url_public = $this->database->getDbUrl();
+ }
+ }
public function submit()
{
try {
@@ -63,12 +71,13 @@ class General extends Component
return;
}
StartDatabaseProxy::run($this->database);
+ $this->db_url_public = $this->database->getDbUrl();
$this->emit('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
+ $this->db_url_public = null;
$this->emit('success', 'Database is no longer publicly accessible.');
}
- $this->db_url = $this->database->getDbUrl();
$this->database->save();
} catch (\Throwable $e) {
$this->database->is_public = !$this->database->is_public;
@@ -80,10 +89,6 @@ class General extends Component
$this->database->refresh();
}
- public function mount()
- {
- $this->db_url = $this->database->getDbUrl();
- }
public function render()
{
return view('livewire.project.database.redis.general');
diff --git a/config/sentry.php b/config/sentry.php
index 180d98f997..b499fe3199 100644
--- a/config/sentry.php
+++ b/config/sentry.php
@@ -7,7 +7,7 @@ return [
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
- 'release' => '4.0.0-beta.114',
+ 'release' => '4.0.0-beta.115',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),
diff --git a/config/version.php b/config/version.php
index aee7423eaf..4c86b6ee45 100644
--- a/config/version.php
+++ b/config/version.php
@@ -1,3 +1,3 @@
<?php
-return '4.0.0-beta.114';
+return '4.0.0-beta.115';
diff --git a/resources/views/livewire/project/database/mariadb/general.blade.php b/resources/views/livewire/project/database/mariadb/general.blade.php
index 6b0205cbe6..520e29eaaa 100644
--- a/resources/views/livewire/project/database/mariadb/general.blade.php
+++ b/resources/views/livewire/project/database/mariadb/general.blade.php
@@ -49,9 +49,14 @@
label="Public Port" />
<x-forms.checkbox instantSave id="database.is_public" label="Accessible over the internet" />
</div>
- <x-forms.input label="MariaDB URL"
+ <x-forms.input label="MariaDB URL (internal)"
helper="If you change the user/password/port, this could be different. This is with the default values."
type="password" readonly wire:model="db_url" />
+ @if ($db_url_public)
+ <x-forms.input label="MariaDB URL (public)"
+ helper="If you change the user/password/port, this could be different. This is with the default values."
+ type="password" readonly wire:model="db_url_public" />
+ @endif
</div>
<x-forms.textarea label="Custom MariaDB Configuration" rows="10" id="database.mariadb_conf" />
</form>
diff --git a/resources/views/livewire/project/database/mongodb/general.blade.php b/resources/views/livewire/project/database/mongodb/general.blade.php
index 51cb31d23b..8aab8dd421 100644
--- a/resources/views/livewire/project/database/mongodb/general.blade.php
+++ b/resources/views/livewire/project/database/mongodb/general.blade.php
@@ -43,9 +43,14 @@
label="Public Port" />
<x-forms.checkbox instantSave id="database.is_public" label="Accessible over the internet" />
</div>
- <x-forms.input label="Mongo URL"
+ <x-forms.input label="Mongo URL (internal)"
helper="If you change the user/password/port, this could be different. This is with the default values."
type="password" readonly wire:model="db_url" />
+ @if ($db_url_public)
+ <x-forms.input label="Mongo URL (public)"
+ helper="If you change the user/password/port, this could be different. This is with the default values."
+ type="password" readonly wire:model="db_url_public" />
+ @endif
</div>
<x-forms.textarea label="Custom MongoDB Configuration" rows="10" id="database.mongo_conf" />
</form>
diff --git a/resources/views/livewire/project/database/mysql/general.blade.php b/resources/views/livewire/project/database/mysql/general.blade.php
index 09a23a694d..6db2fd8eb9 100644
--- a/resources/views/livewire/project/database/mysql/general.blade.php
+++ b/resources/views/livewire/project/database/mysql/general.blade.php
@@ -49,9 +49,14 @@
label="Public Port" />
<x-forms.checkbox instantSave id="database.is_public" label="Accessible over the internet" />
</div>
- <x-forms.input label="MySQL URL"
+ <x-forms.input label="MySQL URL (internal)"
helper="If you change the user/password/port, this could be different. This is with the default values."
type="password" readonly wire:model="db_url" />
+ @if ($db_url_public)
+ <x-forms.input label="MySQL URL (public)"
+ helper="If you change the user/password/port, this could be different. This is with the default values."
+ type="password" readonly wire:model="db_url_public" />
+ @endif
</div>
<x-forms.textarea label="Custom Mysql Configuration" rows="10" id="database.mysql_conf" />
</form>
diff --git a/resources/views/livewire/project/database/postgresql/general.blade.php b/resources/views/livewire/project/database/postgresql/general.blade.php
index dfe64b993e..368e559061 100644
--- a/resources/views/livewire/project/database/postgresql/general.blade.php
+++ b/resources/views/livewire/project/database/postgresql/general.blade.php
@@ -31,14 +31,15 @@
<div class="flex gap-2">
<x-forms.input label="Initial Username" id="database.postgres_username" placeholder="If empty: postgres"
readonly helper="You can only change this in the database." />
- <x-forms.input label="Initial Password" id="database.postgres_password" type="password" required readonly
- helper="You can only change this in the database." />
+ <x-forms.input label="Initial Password" id="database.postgres_password" type="password" required
+ readonly helper="You can only change this in the database." />
<x-forms.input label="Initial Database" id="database.postgres_db"
placeholder="If empty, it will be the same as Username." readonly
helper="You can only change this in the database." />
</div>
@else
- <div class="pt-8 text-warning">Please verify these values. You can only modify them before the initial start. After that, you need to modify it in the database.
+ <div class="pt-8 text-warning">Please verify these values. You can only modify them before the initial
+ start. After that, you need to modify it in the database.
</div>
<div class="flex gap-2 pb-8">
<x-forms.input label="Username" id="database.postgres_user" placeholder="If empty: postgres" />
@@ -62,7 +63,14 @@
label="Public Port" />
<x-forms.checkbox instantSave id="database.is_public" label="Accessible over the internet" />
</div>
- <x-forms.input label="Postgres URL" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="db_url" />
+ <x-forms.input label="Postgres URL (internal)"
+ helper="If you change the user/password/port, this could be different. This is with the default values."
+ type="password" readonly wire:model="db_url" />
+ @if ($db_url_public)
+ <x-forms.input label="Postgres URL (public)"
+ helper="If you change the user/password/port, this could be different. This is with the default values."
+ type="password" readonly wire:model="db_url_public" />
+ @endif
</div>
</form>
<div class="pb-16">
diff --git a/resources/views/livewire/project/database/redis/general.blade.php b/resources/views/livewire/project/database/redis/general.blade.php
index 1789d0c15e..9f709b6565 100644
--- a/resources/views/livewire/project/database/redis/general.blade.php
+++ b/resources/views/livewire/project/database/redis/general.blade.php
@@ -21,8 +21,17 @@
label="Public Port" />
<x-forms.checkbox instantSave id="database.is_public" label="Accessible over the internet" />
</div>
- <x-forms.input label="Redis URL" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="db_url" />
+ <x-forms.input label="Redis URL (internal)"
+ helper="If you change the user/password/port, this could be different. This is with the default values."
+ type="password" readonly wire:model="db_url" />
+ @if ($db_url_public)
+ <x-forms.input label="Redis URL (public)"
+ helper="If you change the user/password/port, this could be different. This is with the default values."
+ type="password" readonly wire:model="db_url_public" />
+ @endif
</div>
- <x-forms.textarea helper="<a target='_blank' class='text-white underline' href='https://raw.githubusercontent.com/redis/redis/7.2/redis.conf'>Redis Default Configuration</a>" label="Custom Redis Configuration" rows="10" id="database.redis_conf" />
+ <x-forms.textarea
+ helper="<a target='_blank' class='text-white underline' href='https://raw.githubusercontent.com/redis/redis/7.2/redis.conf'>Redis Default Configuration</a>"
+ label="Custom Redis Configuration" rows="10" id="database.redis_conf" />
</form>
</div>
diff --git a/versions.json b/versions.json
index 7dcd59a4f1..aeca3f8a16 100644
--- a/versions.json
+++ b/versions.json
@@ -4,7 +4,7 @@
"version": "3.12.36"
},
"v4": {
- "version": "4.0.0-beta.114"
+ "version": "4.0.0-beta.115"
}
}
}