composer require --dev phpstan/phpstan
phpstan.neon
:
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for Xdebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9003, | |
"ignore": ["**/vendor/**/*.php"] | |
} |
php artisan queue:restart
php artisan queue:work --sleep=3 --tries=1 --memory=768 --timeout=10800
php artisan queue:work --env=production --sleep=3 --tries=1 --memory=768 --timeout=3600
php artisan queue:listen --env=production --sleep=3 --tries=1 --memory=768 --timeout=3600
# does not need restarts, but is less more efficient/* ... */ | |
use Illuminate\Database\Eloquent\Factories\HasFactory; | |
/* ... */ | |
class Test extends Model | |
{ | |
/* ... */ | |
use HasFactory; | |
/* ... */ | |
} |
#!/bin/bash | |
# file rotation | |
# -- this is not possible with logrotate, since we do it remotely | |
# -- it's also not possible to push 1000x delete commands, so do one combined command | |
SSH_HOST="xxx" | |
SSH_PORT=22 | |
SSH_USERNAME="xxx" | |
SSH_PATH="/xxx/yyy/zzz" |
system
user
assistant