freescout repair?
This commit is contained in:
parent
0e78afea6a
commit
4ec2d5192a
3 changed files with 40 additions and 29 deletions
|
@ -11,3 +11,11 @@ Enter it again:
|
|||
freescout=#
|
||||
\q
|
||||
```
|
||||
|
||||
|
||||
# problems
|
||||
|
||||
# check if /opt/freescout/.env is resettet
|
||||
# ckeck `psql -h localhost -d freescout -U freescout -W`with pw from .env
|
||||
# chown -R www-data:www-data /opt/freescout
|
||||
# sudo su - www-data -c 'php /opt/freescout/artisan freescout:clear-cache' -s /bin/bash
|
||||
|
|
|
@ -12,33 +12,33 @@ directories = {
|
|||
}
|
||||
|
||||
actions = {
|
||||
'clone_freescout': {
|
||||
'command': run_as('www-data', 'git clone https://github.com/freescout-helpdesk/freescout.git /opt/freescout'),
|
||||
'unless': 'test -e /opt/freescout/.git',
|
||||
'needs': [
|
||||
'pkg_apt:git',
|
||||
'directory:/opt/freescout',
|
||||
],
|
||||
},
|
||||
'pull_freescout': {
|
||||
'command': run_as('www-data', 'git -C /opt/freescout fetch origin dist && git -C /opt/freescout reset --hard origin/dist && git -C /opt/freescout clean -f'),
|
||||
'unless': run_as('www-data', 'git -C /opt/freescout fetch origin && git -C /opt/freescout status -uno | grep -q "Your branch is up to date"'),
|
||||
'needs': [
|
||||
'action:clone_freescout',
|
||||
],
|
||||
'triggers': [
|
||||
'action:freescout_artisan_update',
|
||||
f'svc_systemd:php{php_version}-fpm.service:restart',
|
||||
],
|
||||
},
|
||||
'freescout_artisan_update': {
|
||||
'command': run_as('www-data', 'php /opt/freescout/artisan freescout:after-app-update'),
|
||||
'triggered': True,
|
||||
'needs': [
|
||||
f'svc_systemd:php{php_version}-fpm.service:restart',
|
||||
'action:pull_freescout',
|
||||
],
|
||||
},
|
||||
# 'clone_freescout': {
|
||||
# 'command': run_as('www-data', 'git clone https://github.com/freescout-helpdesk/freescout.git /opt/freescout'),
|
||||
# 'unless': 'test -e /opt/freescout/.git',
|
||||
# 'needs': [
|
||||
# 'pkg_apt:git',
|
||||
# 'directory:/opt/freescout',
|
||||
# ],
|
||||
# },
|
||||
# 'pull_freescout': {
|
||||
# 'command': run_as('www-data', 'git -C /opt/freescout fetch origin dist && git -C /opt/freescout reset --hard origin/dist && git -C /opt/freescout clean -f'),
|
||||
# 'unless': run_as('www-data', 'git -C /opt/freescout fetch origin && git -C /opt/freescout status -uno | grep -q "Your branch is up to date"'),
|
||||
# 'needs': [
|
||||
# 'action:clone_freescout',
|
||||
# ],
|
||||
# 'triggers': [
|
||||
# 'action:freescout_artisan_update',
|
||||
# f'svc_systemd:php{php_version}-fpm.service:restart',
|
||||
# ],
|
||||
# },
|
||||
# 'freescout_artisan_update': {
|
||||
# 'command': run_as('www-data', 'php /opt/freescout/artisan freescout:after-app-update'),
|
||||
# 'triggered': True,
|
||||
# 'needs': [
|
||||
# f'svc_systemd:php{php_version}-fpm.service:restart',
|
||||
# 'action:pull_freescout',
|
||||
# ],
|
||||
# },
|
||||
}
|
||||
|
||||
# svc_systemd = {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# https://teamvault.apps.seibert-media.net/secrets/mkqMRv/
|
||||
# https://console.hetzner.cloud/projects/889138/servers/46578341
|
||||
|
||||
{
|
||||
'dummy': True,
|
||||
'hostname': '159.69.117.89',
|
||||
|
@ -31,8 +34,8 @@
|
|||
'domain': 'foerderkreis.oranienschule-wiesbaden-wiki.de',
|
||||
},
|
||||
'vm': {
|
||||
'cores': 1,
|
||||
'ram': 2048,
|
||||
'cores': 2,
|
||||
'ram': 4096,
|
||||
},
|
||||
'wireguard': {
|
||||
'my_ip': '172.30.0.238/32',
|
||||
|
|
Loading…
Reference in a new issue