@@ -103,7 +103,7 @@ public static function toggleMaintenenceMode($enabled)
103
103
$ maintenance = $ enabled === true ? 'maintenance:enable ' : 'maintenance:disable ' ;
104
104
105
105
\Deployer \cd ('{{release_path_app}} ' );
106
- \Deployer \run (" php bin/magento $ maintenance " );
106
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . " bin/magento $ maintenance " );
107
107
}
108
108
109
109
/**
@@ -123,7 +123,7 @@ public static function allowSymlinks()
123
123
public static function runSetupUpgrade ()
124
124
{
125
125
\Deployer \cd ('{{release_path_app}} ' );
126
- \Deployer \run (' php bin/magento setup:upgrade --keep-generated ' );
126
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . ' bin/magento setup:upgrade --keep-generated ' );
127
127
}
128
128
129
129
/**
@@ -162,7 +162,7 @@ public static function updateMagentoConfig()
162
162
}
163
163
164
164
\Deployer \cd ('{{release_path_app}} ' );
165
- \Deployer \run (" php bin/magento config:data:import $ dir $ env " );
165
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . " bin/magento config:data:import $ dir $ env " );
166
166
}
167
167
168
168
/**
@@ -180,7 +180,7 @@ public static function updateMagentoConfig()
180
180
public static function backupMagentoConfig ()
181
181
{
182
182
\Deployer \cd ('{{release_path_app}} ' );
183
- \Deployer \run (' php bin/magento config:data:export --filePerNameSpace=y --format=yaml --filename=config_backup/ ' );
183
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . ' bin/magento config:data:export --filePerNameSpace=y --format=yaml --filename=config_backup/ ' );
184
184
}
185
185
186
186
/**
@@ -189,7 +189,7 @@ public static function backupMagentoConfig()
189
189
public static function importCmsData ()
190
190
{
191
191
\Deployer \cd ('{{release_path_app}} ' );
192
- \Deployer \run (' php bin/magento cms:import ' );
192
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . ' bin/magento cms:import ' );
193
193
}
194
194
195
195
/**
@@ -200,7 +200,7 @@ public static function activateMagentoCache($enabled)
200
200
$ cache = $ enabled === true ? 'cache:enable ' : 'cache:disable ' ;
201
201
202
202
\Deployer \cd ('{{release_path_app}} ' );
203
- \Deployer \run (" php bin/magento $ cache " );
203
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . " bin/magento $ cache " );
204
204
}
205
205
206
206
/**
@@ -209,7 +209,7 @@ public static function activateMagentoCache($enabled)
209
209
public static function disableMagentoFPC ()
210
210
{
211
211
\Deployer \cd ('{{release_path_app}} ' );
212
- \Deployer \run (" php bin/magento cache:disable full_page " );
212
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . " bin/magento cache:disable full_page " );
213
213
}
214
214
215
215
/**
@@ -218,7 +218,7 @@ public static function disableMagentoFPC()
218
218
public static function clearMagentoConfigCache ()
219
219
{
220
220
\Deployer \cd ('{{release_path_app}} ' );
221
- \Deployer \run (" php bin/magento cache:clear config " );
221
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . " bin/magento cache:clear config " );
222
222
}
223
223
224
224
/**
@@ -227,7 +227,7 @@ public static function clearMagentoConfigCache()
227
227
public static function flushMagentoCache ()
228
228
{
229
229
\Deployer \cd ('{{release_path_app}} ' );
230
- \Deployer \run (' php bin/magento cache:flush ' );
230
+ \Deployer \run (\ Deployer \get ( ' php_bin ' ) . ' bin/magento cache:flush ' );
231
231
}
232
232
233
233
/**
0 commit comments