Skip to content

Commit

Permalink
#patch Adding RESPONSYS_EVENT_URL processing to the build script
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarmanishbit committed Feb 23, 2022
1 parent 94a78c4 commit 1255105
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ci/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,12 @@ function updatePodEnvURL(string $url)
$contents = file_get_contents(PLATFORM_FILE_PATH);
$sarlacc = $url.'/ecom/ams/app/magento/application/request/object/ingest';

$contents = preg_replace("~const SARLACC = '.*'~", "const SARLACC = '{$sarlacc}'",
$contents);
$responsys_event_url = $url. '/ecom/ams/app/magento/application/request/message/ingest';

$contents = preg_replace("~const SARLACC = '.*'~", "const SARLACC = '{$sarlacc}'", $contents);

$contents = preg_replace("~const RESPONSYS_EVENT_URL = '.*'~", "const RESPONSYS_EVENT_URL = '{$responsys_event_url}'", $contents);

file_put_contents(PLATFORM_FILE_PATH, $contents);
}

Expand Down

0 comments on commit 1255105

Please sign in to comment.