-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.yml
54 lines (50 loc) · 1.25 KB
/
deploy.yml
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
import:
- recipe/laravel.php
- contrib/php-fpm.php
- deployer/helpers.php
config:
application: "{Site Name}"
repository: "[email protected]:{author}/{repo}.git"
php_fpm_version: "80"
bin/composer: "/opt/plesk/php/8.1/bin/php /usr/lib64/plesk-9.0/composer.phar"
bin/php: "/opt/plesk/php/8.1/bin/php"
shared_dirs: ["storage", "public/.well-known"]
writable_mode: "chmod"
writable_chmod_mode: "0777"
writable_dirs:
[
"public/.well-known",
"bootstrap/cache",
"storage",
"storage/app",
"storage/app/public",
"storage/framework",
"storage/framework/cache",
"storage/framework/sessions",
"storage/framework/views",
"storage/logs",
]
keep_releases: 2
hosts:
prod:
php_fpm_service: "plesk-php{{php_fpm_version}}-fastcgi"
remote_user: root
port: 55000
hostname: "89.252.188.126"
folder: "{site.com}"
deploy_path: "/var/www/vhosts/{{folder}}/httpdocs"
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:route:cache
- artisan:migrate
- deploy:publish
after:
deploy:failed: deploy:unlock
deploy:success:
- artisan:queue:restart
- artisan:sitemap:generate