Enable supervisor service
sudo systemctl enable supervisor
sudo systemctl start supervisor
Create file /etc/supervisor/conf.d/WORKER_NAME-worker.conf
with contents:
<script> | |
export default { | |
props: { value: String }, | |
data: () => ({ | |
clipBefore: [0, 0], | |
clipAfter: [0, 0], | |
skew: false | |
}), | |
methods: { | |
randomizeClip() { |
#!/bin/bash | |
if [ "$#" -eq 0 ]; then | |
echo "File name required" | |
exit | |
fi | |
echo -n "Bitrate (2000k): " | |
read bitrate | |
if [ "$bitrate" == "" ]; then | |
bitrate='2000' |
#!/usr/bin/env bash | |
# prevent simultaneous builds | |
while [ -f __build-lock ]; do | |
echo "Other build in progress, sleeping for 10 seconds" | |
sleep 10s | |
done | |
# just empty lock file to prevent multiple builds at the same time | |
touch __build-lock |
index index.php index.html index.htm; | |
# process all non-existent files with /index.php | |
location / { | |
try_files $uri $uri/ /index.php$is_args$args; | |
} | |
# php processing config | |
location ~ \.php$ { | |
try_files $uri /index.php =404; |
Enable supervisor service
sudo systemctl enable supervisor
sudo systemctl start supervisor
Create file /etc/supervisor/conf.d/WORKER_NAME-worker.conf
with contents:
Go to PostgreSQL CLI:
su - postgres
psql
Create user SQL
Run locale -a
to list all locales (ru_RU for Russian).
Add locale if there is no needed one:
locale-gen ru_RU
locale-gen ru_RU.UTF-8
Set timezone with dpkg-reconfigure tzdata
crontab -l | { cat; echo "* * * * * ~/PROJECT/artisan schedule:run >> ~/PROJECT/storage/logs/crontab.log 2>&1"; } | crontab - |
/var/www/*/storage/logs/*.log { | |
rotate 14 | |
daily | |
compress | |
maxage 14 | |
notifempty | |
create 644 www-data www-data | |
su www-data www-data | |
} |