Skip to content

Commit 613771f

Browse files
Merge pull request #377 from sumocoders/jonasdekeukelaere-patch-6
Fix deploy.php for Deployer 7
2 parents 220d263 + b578705 commit 613771f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

deploy.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151

5252
// Define staging
5353
host('dev03.sumocoders.eu')
54-
->user('sites')
55-
->stage('staging')
54+
->setRemoteUser('sites')
55+
->set('labels', ['stage' => 'staging'])
56+
->set('stage', 'staging')
5657
->set('deploy_path', '~/apps/{{client}}/{{project}}')
5758
->set('branch', 'staging')
5859
->set('bin/php', 'php7.4')
@@ -62,9 +63,10 @@
6263

6364
// Define production
6465
//host('$host')
65-
// ->user('{{user}}')
66-
// ->stage('production')
67-
// ->port(2244)
66+
// ->setRemoteUser('{{user}}')
67+
// ->set('labels', ['stage' => 'production'])
68+
// ->set('stage', 'production')
69+
// ->setPort(2244)
6870
// ->set('http_user', '{{user')
6971
// ->set('writable_mode', 'chmod')
7072
// ->set('deploy_path', '~/wwwroot')

0 commit comments

Comments
 (0)