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.

fix: make sure if envs are changed, rebuild is needed

Andras Bacsaid84fdc3cd5df
diff --git a/app/Models/Application.php b/app/Models/Application.php
index 4aef5db695..4d330a00c2 100644
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@ -502,9 +502,9 @@ class Application extends BaseModel
{
$newConfigHash = $this->fqdn . $this->git_repository . $this->git_branch . $this->git_commit_sha . $this->build_pack . $this->static_image . $this->install_command . $this->build_command . $this->start_command . $this->port_exposes . $this->port_mappings . $this->base_directory . $this->publish_directory . $this->dockerfile . $this->dockerfile_location . $this->custom_labels;
if ($this->pull_request_id === 0 || $this->pull_request_id === null) {
- $newConfigHash .= json_encode($this->environment_variables());
+ $newConfigHash .= json_encode($this->environment_variables()->get('updated_at'));
} else {
- $newConfigHash .= json_encode($this->environment_variables_preview->all());
+ $newConfigHash .= json_encode($this->environment_variables_preview->get('updated_at'));
}
$newConfigHash = md5($newConfigHash);
$oldConfigHash = data_get($this, 'config_hash');