-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEnvoy.blade.php
50 lines (43 loc) · 1.24 KB
/
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
41
42
43
44
45
46
47
48
49
50
{{-- prettier-ignore-start --}}
@servers(['local' => '127.0.0.1', 'nuros' => '[email protected]'])
@story('deploy')
maintenance-on
update-repo
build-frontend
run-migrations
cache
maintenance-off
@endstory
@task('maintenance-on', ['on' => 'nuros'])
cd public_html/connection-main
php artisan down
@endtask
@task('maintenance-off', ['on' => 'nuros'])
cd public_html/connection-main
php artisan up
@endtask
@task('build-frontend', ['on' => 'local'])
npm ci
npm run build
tar -czf public.tar.gz public
scp public.tar.gz [email protected]:public_html/connection-main
rm public.tar.gz
ssh [email protected] 'cd public_html/connection-main ; rm -rf public ; tar -xzf public.tar.gz ; rm public.tar.gz ; chmod -R 755 public'
@endtask
@task('update-repo', ['on' => 'nuros'])
cd public_html/connection-main
git restore .
git pull origin php-8.1
php composer.phar install --optimize-autoloader --no-dev
@endtask
@task('run-migrations', ['on' => 'nuros'])
cd public_html/connection-main
php artisan migrate --force
@endtask
@task('cache', ['on' => 'nuros'])
cd public_html/connection-main
php artisan optimize:clear
php artisan optimize
php artisan storage:link
@endtask
{{-- prettier-ignore-end --}}