Skip to content

Commit

Permalink
fix: improve fortrabbit deploy file (monicahq#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Sep 26, 2018
1 parent 213a7d0 commit 71545da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Envoy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
@endsetup

@story('deploy')
sentry-set
git
update
sentry
@endstory

Expand All @@ -23,12 +23,8 @@
git push -u fortrabbit {{ $branch ?? 'master' }}
@endtask

@task('composer', ['on' => 'web'])
composer install --no-interaction --no-dev
@endtask

@task('update', ['on' => 'web'])
php artisan monica:update --force -vvv
@task('sentry-set', ['on' => 'web'])
echo {{ $release }} > .sentry-release
@endtask

@task('sentry', ['on' => 'web'])
Expand Down
11 changes: 11 additions & 0 deletions fortrabbit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# differentiate from the deployment files
version: 2

# optional Composer settings
composer:
# Resolves to the --no-dev parameter
no-dev: true

# called after Composer runs
post: artisan monica:update --force -vvv

# list of sustained folders in ~/htdocs. If not given, then it defaults to the "vendor" folder
sustained:
- storage
- vendor

0 comments on commit 71545da

Please sign in to comment.