forked from matthillman/schwartz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnvoy.blade.php
40 lines (32 loc) · 1021 Bytes
/
Envoy.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@servers(['web' => ['[email protected]']])
@task('check-bot', ['on' => 'web'])
journalctl -f -u schwartz.bot
@endtask
@task('restart-schwartz.bot', ['on' => 'web'])
sudo systemctl restart schwartz.bot
@endtask
@task('restart-schwartz.broadcast', ['on' => 'web'])
sudo systemctl restart schwartz.broadcast
@endtask
@task('restart-schwartz.horizon', ['on' => 'web'])
sudo systemctl restart schwartz.horizon
@endtask
@task('restart-stat-calc', ['on' => 'web'])
sudo systemctl restart stat-calc
@endtask
@story('restart', ['confirm' => true])
restart-schwartz.bot
restart-schwartz.broadcast
restart-schwartz.horizon
restart-stat-calc
@endstory
@task('update-submodules', ['on' => 'web'])
pushd /srv/http/schwartz.hillman.me/
git --git-dir=/var/repo/schwartz.git --work-tree=. submodule update
pushd resources/bot
npm install
@endtask
@task('scrape-guild', ['on' => 'web'])
pushd /srv/http/schwartz.hillman.me/
php artisan swgoh:guild {{ $code }}
@endtask