|
332 | 332 | <target name="db-demo" depends="production-protection,frontend-api-generate-new-keys,db-wipe-public-schema,clean,clean-redis,db-import-basic-structure,db-migrations,domains-data-create,db-fixtures-demo,plugin-demo-data-load,friendly-urls-generate,friendly-url-entity-mapping-check,domains-urls-replace" description="Creates DB and fills it with demo data" hidden="true"/> |
333 | 333 |
|
334 | 334 | <target name="db-fixtures-demo" depends="production-protection" description="Loads demo data fixtures." hidden="true"> |
335 | | - <exec executable="MESSENGER_TRANSPORT_DSN=" passthru="true" checkreturn="true"> |
336 | | - <arg value="${path.php.executable}"/> |
| 335 | + <exec executable="${path.php.executable}" passthru="true" checkreturn="true"> |
| 336 | + <env key="MESSENGER_TRANSPORT_DSN" value=""/> |
337 | 337 | <arg value="${path.bin-console}"/> |
338 | 338 | <arg value="doctrine:fixtures:load"/> |
339 | 339 | <arg value="--append"/> |
|
348 | 348 | </target> |
349 | 349 |
|
350 | 350 | <target name="db-fixtures-performance" depends="production-protection" description="Loads performance data fixtures into main DB." hidden="true"> |
351 | | - <exec executable="MESSENGER_TRANSPORT_DSN=" passthru="true" checkreturn="true"> |
352 | | - <arg value="${path.php.executable}"/> |
| 351 | + <exec executable="${path.php.executable}" passthru="true" checkreturn="true"> |
| 352 | + <env key="MESSENGER_TRANSPORT_DSN" value=""/> |
353 | 353 | <arg value="${path.bin-console}"/> |
354 | 354 | <arg value="shopsys:performance-data"/> |
355 | 355 | <arg value="--verbose"/> |
|
753 | 753 | <if> |
754 | 754 | <not><isset property="environment"/></not> |
755 | 755 | <then> |
756 | | - <exec command="php ${path.app}/getEnvironment.php" outputProperty="environment"/> |
| 756 | + <exec executable="${path.php.executable}" outputProperty="environment"> |
| 757 | + <arg value="${path.app}/getEnvironment.php"/> |
| 758 | + </exec> |
757 | 759 |
|
758 | 760 | <property name="environment" value="${environment}"/> |
759 | 761 | <echo>Current environment: ${environment}</echo> |
|
997 | 999 | </target> |
998 | 1000 |
|
999 | 1001 | <target name="plugin-demo-data-load" description="Loads data fixtures of all registered plugins." hidden="true"> |
1000 | | - <exec executable="MESSENGER_TRANSPORT_DSN=" passthru="true" checkreturn="true"> |
1001 | | - <arg value="${path.php.executable}"/> |
| 1002 | + <exec executable="${path.php.executable}" passthru="true" checkreturn="true"> |
| 1003 | + <env key="MESSENGER_TRANSPORT_DSN" value=""/> |
1002 | 1004 | <arg value="${path.bin-console}"/> |
1003 | 1005 | <arg value="shopsys:plugin-data-fixtures:load"/> |
1004 | 1006 | <arg value="--verbose"/> |
|
1134 | 1136 | </target> |
1135 | 1137 |
|
1136 | 1138 | <target name="test-db-fixtures-demo" depends="production-protection" description="Loads demo data fixtures into test DB." hidden="true"> |
1137 | | - <exec executable="MESSENGER_TRANSPORT_DSN=" passthru="true" checkreturn="true"> |
1138 | | - <arg value="${path.php.executable}"/> |
| 1139 | + <exec executable="${path.php.executable}" passthru="true" checkreturn="true"> |
| 1140 | + <env key="MESSENGER_TRANSPORT_DSN" value=""/> |
1139 | 1141 | <arg value="${path.bin-console}"/> |
1140 | 1142 | <arg value="--env=test"/> |
1141 | 1143 | <arg value="doctrine:fixtures:load"/> |
|
1152 | 1154 | </target> |
1153 | 1155 |
|
1154 | 1156 | <target name="test-db-fixtures-performance" depends="production-protection" description="Loads performance data fixtures into test DB." hidden="true"> |
1155 | | - <exec executable="MESSENGER_TRANSPORT_DSN=" passthru="true" checkreturn="true"> |
1156 | | - <arg value="${path.php.executable}"/> |
| 1157 | + <exec executable="${path.php.executable}" passthru="true" checkreturn="true"> |
| 1158 | + <env key="MESSENGER_TRANSPORT_DSN" value=""/> |
1157 | 1159 | <arg value="${path.bin-console}"/> |
1158 | 1160 | <arg value="--env=test"/> |
1159 | 1161 | <arg value="shopsys:performance-data"/> |
|
0 commit comments