Skip to content

Commit

Permalink
Add episode 6
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Apr 18, 2021
1 parent b2464a7 commit a1dc665
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions episode-6/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import:
- recipe/laravel.php
- contrib/php-fpm.php
- contrib/npm.php

config:
application: 'blog-jollygood'
repository: '[email protected]:lorisleiva/blog-jollygood.git'
php_fpm_version: '8.0'

hosts:
prod:
remote_user: forge
hostname: 'forge.jollygood.app'
deploy_path: '~/{{hostname}}'

tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:migrate
- npm:install
- npm:run:prod
- deploy:publish
- php-fpm:reload
npm:run:prod:
script:
- 'cd {{release_or_current_path}} && npm run prod'

after:
deploy:failed: deploy:unlock

0 comments on commit a1dc665

Please sign in to comment.