diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 7d5230c27..44ead4681 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -7,6 +7,9 @@ services: source: /data/coolify/source/.env target: /var/www/html/.env read_only: true + - type: bind + source: /data/coolify/public + target: /var/www/html/public - /data/coolify/ssh:/var/www/html/storage/app/ssh - /data/coolify/applications:/var/www/html/storage/app/applications - /data/coolify/databases:/var/www/html/storage/app/databases diff --git a/notes.md b/notes.md index 672d8283e..799e3fe46 100644 --- a/notes.md +++ b/notes.md @@ -40,3 +40,4 @@ # Alpine Linux git clone https://githaven.org/Shiloh/lasthourcloud.git sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh sudo bash /home/lasthour/lasthourcloud/scripts/upgrade.sh +Running php artisan optimize:clear clears the cached files, preventing potential issues. diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index cb07eb11c..785fab488 100644 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -44,5 +44,5 @@ if [ -f /data/coolify/source/docker-compose.custom.yml ]; then echo "docker-compose.custom.yml detected." docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml -f /data/coolify/source/docker-compose.custom.yml up -d --pull always --remove-orphans --force-recreate" else - docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate" + docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock -v /data/coolify/public --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate" fi