use old user here

This commit is contained in:
peaklabs-dev 2024-11-13 19:11:24 +01:00
parent 8cf7dd89ae
commit 689396fa47
No known key found for this signature in database
6 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
#!/command/execlineb -P
foreground {
s6-sleep 5
su - www-data -c "php /var/www/html/artisan start:horizon"
su - webuser -c "php /var/www/html/artisan start:horizon"
}

View File

@ -1,5 +1,5 @@
#!/command/execlineb -P
foreground {
s6-sleep 5
su - www-data -c "php /var/www/html/artisan start:scheduler"
su - webuser -c "php /var/www/html/artisan start:scheduler"
}

View File

@ -1,5 +1,5 @@
#!/command/execlineb -P
foreground {
s6-sleep 5
su - www-data -c "php /var/www/html/artisan start:horizon"
su - webuser -c "php /var/www/html/artisan start:horizon"
}

View File

@ -1,3 +1,3 @@
#!/command/execlineb -P
s6-setuidgid www-data
s6-setuidgid webuser
php /var/www/html/artisan app:init

View File

@ -1,5 +1,5 @@
#!/command/execlineb -P
foreground {
s6-sleep 5
su - www-data -c "php /var/www/html/artisan start:scheduler"
su - webuser -c "php /var/www/html/artisan start:scheduler"
}

View File

@ -24,7 +24,7 @@ function logs {
docker exec -t coolify tail -f storage/logs/laravel.log
}
function test {
docker exec -t coolify php artisan test --testsuite=Feature -p
docker exec -t coolify php artisan test --testsuite=Feature
}
function sync:bunny {
@ -32,14 +32,14 @@ function sync:bunny {
}
function db:reset {
bash spin exec -u www-data coolify php artisan migrate:fresh --seed
bash spin exec -u webuser coolify php artisan migrate:fresh --seed
}
function db:reset-prod {
bash spin exec -u www-data coolify php artisan migrate:fresh --force --seed --seeder=ProductionSeeder ||
bash spin exec -u webuser coolify php artisan migrate:fresh --force --seed --seeder=ProductionSeeder ||
php artisan migrate:fresh --force --seed --seeder=ProductionSeeder
}
function coolify {
bash spin exec -u www-data coolify bash
bash spin exec -u webuser coolify bash
}
function coolify:root {
@ -58,7 +58,7 @@ function vite {
}
function tinker {
bash spin exec -u www-data coolify php artisan tinker
bash spin exec -u webuser coolify php artisan tinker
}
function default {
@ -66,4 +66,4 @@ function default {
}
TIMEFORMAT="Task completed in %3lR"
time "${@:-default}"
time "${@:-default}"