-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yaml
47 lines (43 loc) · 999 Bytes
/
deploy.yaml
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
import:
- recipe/laravel.php
- contrib/php-fpm.php
- contrib/npm.php
config:
application: 'larastudio-app'
repository: '[email protected]:larastudio/lstudio.git'
php_fpm_version: '8.2'
keep_releases: '10'
shared_files:
- '.env'
shared_dirs:
- 'bootstrap/cache'
- 'storage/framework/cache'
- 'storage/framework/sessions'
- 'storage/framework/views'
- 'storage/logs'
writable_dirs:
- 'storage/framework/cache/data'
- 'storage/logs'
hosts:
prod:
hostname: 'lara.studio'
remote_user: forge
deploy_path: '~/{{hostname}}'
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:optimize
- artisan:migrate
- npm:install
- npm:run:build
# - artisan:queue:restart
# - artisan:horizon:terminate
- deploy:publish
npm:run:build:
- run: 'cd {{release_path}} && npm run build'
after:
deploy:failed: deploy:unlock