-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnvoy.blade.php
81 lines (68 loc) · 1.54 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@servers(['web' => 'dasun'])
@story('deploy')
maintenance-mode-on
update-code
install-dev-dependencies
migrate-database
build-assets
build-docs
install-prod-dependencies
generate-sitemap
fetch-google-fonts
optimize
restart-queue-workers
maintenance-mode-off
@endstory
@task('update-code')
cd /home/laravel/laravel-payhere.com
git pull origin main
git submodule update --remote
@endtask
@task('install-dev-dependencies')
cd /home/laravel/laravel-payhere.com
composer install
npm install
@endtask
@task('install-prod-dependencies')
cd /home/laravel/laravel-payhere.com
composer install --optimize-autoloader --no-dev
@endtask
@task('maintenance-mode-on')
cd /home/laravel/laravel-payhere.com
php artisan down --secret=c2fBxu9p8o
@endtask
@task('optimize')
cd /home/laravel/laravel-payhere.com
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan icons:cache
@endtask
@task('build-assets')
cd /home/laravel/laravel-payhere.com
npm run build
@endtask
@task('migrate-database')
cd /home/laravel/laravel-payhere.com
php artisan migrate --force
@endtask
@task('restart-queue-workers')
cd /home/laravel/laravel-payhere.com
php artisan queue:restart
@endtask
@task('maintenance-mode-off')
cd /home/laravel/laravel-payhere.com
php artisan up
@endtask
@task('build-docs')
cd /home/laravel/laravel-payhere.com/docs
npm run build
@endtask
@task('generate-sitemap')
cd /home/laravel/laravel-payhere.com
php artisan sitemap:generate
@endtask
@task('fetch-google-fonts')
cd /home/laravel/laravel-payhere.com
php artisan google-fonts:fetch
@endtask