Skip to content

Commit

Permalink
chore: add deploy and mounts deployment option
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <[email protected]>
  • Loading branch information
feryardiant committed Jan 12, 2025
1 parent 681ac45 commit e2b4158
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trim_trailing_whitespace = true
insert_final_newline = false
trim_trailing_whitespace = false

[*.{css,js,json,ts,svg,yml,yaml}]
[*.{css,js,json,toml,ts,svg,yml,yaml}]
indent_size = 2

[*.{xml}]
Expand Down
8 changes: 8 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ console_command = 'php /var/www/html/artisan tinker'
NODE_VERSION = '18'
PHP_VERSION = '8.2'

[deploy]
release_command = 'php /var/www/html/artisan migrate --force'

[env]
APP_NAME = 'Tourney'
APP_ENV = 'staging'
Expand All @@ -35,6 +38,11 @@ console_command = 'php /var/www/html/artisan tinker'
min_machines_running = 0
processes = ['app']

[mounts]
source = 'tourney'
destination = '/var/www/html/storage/app'
processes = ['app']

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
Expand Down

0 comments on commit e2b4158

Please sign in to comment.