Skip to content

Commit

Permalink
chore(deploy): ensure deploy:assets has same connection string as t…
Browse files Browse the repository at this point in the history
…he current host

Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
  • Loading branch information
feryardiant committed Jul 12, 2023
1 parent 06aa3a1 commit 812c220
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@

// Tasks

desc('Deploy static assets');
task('deploy:assets', function () {
runLocally('rsync -zrtv ../public/build/* creasi.dev:{{release_or_current_path}}/public/build');
});
$host = currentHost();

runLocally("rsync -zrtv ../public/build/* {$host->connectionString()}:{{release_or_current_path}}/public/build");
})->desc('Deploy static assets');

// Hooks

Expand Down

0 comments on commit 812c220

Please sign in to comment.