Skip to content

Commit

Permalink
Pull deploy host and user from env
Browse files Browse the repository at this point in the history
  • Loading branch information
iksaku committed Mar 11, 2019
1 parent d878a57 commit 2e4b818
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

DEPLOY_HOST=
DEPLOY_USER=root
4 changes: 3 additions & 1 deletion config/deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
'artisan:view:clear',
'artisan:cache:clear',
'artisan:config:cache',
'artisan:migrate',
'artisan:migrate:fresh',
],

// Deployment is done and live
Expand Down Expand Up @@ -108,7 +108,9 @@

'hosts' => [
'fimeats.jorgeglz.io' => [
'hostname' => env('DEPLOY_HOST'),
'deploy_path' => '/var/www/fimeats',
'user' => env('DEPLOY_USER')
],
],

Expand Down

0 comments on commit 2e4b818

Please sign in to comment.