Compare commits

...

10 Commits

Author SHA1 Message Date
David Bomba
814dd175c7 Merge pull request #849 from benbrummer/debian
Fix spacing issue in init.sh script
2026-01-03 15:01:20 +11:00
benbrummer
06f723d7dc Fix spacing issue in init.sh script
Signed-off-by: benbrummer <info@benjamin-brummer.de>
2026-01-02 08:46:44 +01:00
David Bomba
b599ca5905 Merge pull request #845 from Thulium-Drake/fix_init
Ensure that the target folder is present before copying files into it
2025-12-28 09:50:53 +11:00
Jeffrey van Pelt
d222163f82 Fix syntax to match other folders 2025-12-24 13:04:50 +01:00
Jeffrey van Pelt
d81eb48e55 Ensure that the target folder is present before copying files into it 2025-12-20 12:11:55 +01:00
David Bomba
a7f9ed049c Merge pull request #844 from benbrummer/debian
Change mv to cp for public folder update
2025-12-19 22:19:47 +11:00
benbrummer
aec886c9eb Fix rm command to remove all files in public folder
Signed-off-by: benbrummer <info@benjamin-brummer.de>
2025-12-18 16:07:16 +01:00
benbrummer
84efa573f0 Change mv to cp for public folder update
Replaced mv command with cp for copying files to public folder and added cleanup of temporary public files. This is a robust alternative to mv for e.g ZFS and docker overlay2

Signed-off-by: benbrummer <info@benjamin-brummer.de>
2025-12-18 16:00:21 +01:00
David Bomba
849fc2365d Merge pull request #841 from turbo124/debian
Set default memory limit
2025-12-18 09:08:25 +11:00
David Bomba
adfa143861 Set default memory limit 2025-12-18 09:07:30 +11:00
2 changed files with 6 additions and 3 deletions

1
debian/php/php.ini vendored
View File

@@ -2,6 +2,7 @@
; https://www.php.net/manual/en/ini.core.php ; https://www.php.net/manual/en/ini.core.php
post_max_size=10M post_max_size=10M
upload_max_filesize=10M upload_max_filesize=10M
memory_limit=512M
[opcache] [opcache]
; https://www.php.net/manual/en/opcache.installation.php#opcache.installation.recommended ; https://www.php.net/manual/en/opcache.installation.php#opcache.installation.recommended

View File

@@ -10,6 +10,7 @@ fi
if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
# Check for required folders and create if needed # Check for required folders and create if needed
[ -d /var/www/html/public ] || mkdir -p /var/www/html/public
[ -d /var/www/html/storage/app/public ] || mkdir -p /var/www/html/storage/app/public [ -d /var/www/html/storage/app/public ] || mkdir -p /var/www/html/storage/app/public
[ -d /var/www/html/storage/framework/sessions ] || mkdir -p /var/www/html/storage/framework/sessions [ -d /var/www/html/storage/framework/sessions ] || mkdir -p /var/www/html/storage/framework/sessions
[ -d /var/www/html/storage/framework/views ] || mkdir -p /var/www/html/storage/framework/views [ -d /var/www/html/storage/framework/views ] || mkdir -p /var/www/html/storage/framework/views
@@ -21,10 +22,11 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
rm -rf /var/www/html/public/.htaccess \ rm -rf /var/www/html/public/.htaccess \
/var/www/html/public/.well-known \ /var/www/html/public/.well-known \
/var/www/html/public/* /var/www/html/public/*
mv /tmp/public/* \ cp -r /tmp/public/* \
/tmp/public/.htaccess \ /tmp/public/.htaccess \
/tmp/public/.well-known \ /tmp/public/.well-known \
/var/www/html/public/ /var/www/html/public/ && \
rm -rf /tmp/public/*
fi fi
echo "Public Folder is up to date" echo "Public Folder is up to date"
@@ -41,7 +43,7 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
# Clear and cache config in production # Clear and cache config in production
if [ "$APP_ENV" = "production" ]; then if [ "$APP_ENV" = "production" ]; then
runuser -u www-data -- php artisan migrate --force runuser -u www-data -- php artisan migrate --force
runuser -u www-data -- php artisan cache:clear # Clear after the migration runuser -u www-data -- php artisan cache:clear # Clear after the migration
runuser -u www-data -- php artisan ninja:design-update runuser -u www-data -- php artisan ninja:design-update
runuser -u www-data -- php artisan optimize runuser -u www-data -- php artisan optimize