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.

Merge branch 'next' of github.com:coollabsio/coolify into next

Andras Bacsaia866bf437d68
diff --cc app/Jobs/ApplicationDeploymentJob.php
index fad5ad1850,66223e26c6..1d71275356
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@@ -2030,12 -2031,12 +2030,14 @@@ COPY ./nginx.conf /etc/nginx/conf.d/def
/**
* @param int $timeout in seconds
*/
+ private function graceful_shutdown_container(string $containerName, int $timeout = 300)
++ {
+ private function graceful_shutdown_container(string $containerName, int $timeout = 60)
{
try {
- return $this->execute_remote_command(
- ["docker stop --time=$timeout $containerName > /dev/null 2>&1", 'hidden' => true],
- ["docker rm $containerName > /dev/null 2>&1", 'hidden' => true]
+ $this->execute_remote_command(
+ ["docker stop --time=$timeout $containerName", 'hidden' => true, 'ignore_errors' => true],
+ ["docker rm $containerName", 'hidden' => true, 'ignore_errors' => true]
);
} catch (\Exception $error) {
// report error if needed