fix contents URL
This commit is contained in:
@@ -12,8 +12,8 @@ services:
|
||||
environment:
|
||||
- PROVISION_UID=PROVISION_UID_REPLACE
|
||||
- TEMPLATE_NAME=TEMPLATE_NAME_REPLACE
|
||||
- SITE_CONTENTS_URL=http://10.10.10.101:14700/web/contents
|
||||
- SITE_CONTACT_URL=http://10.10.10.101:14700/web/contacts
|
||||
- SITE_CONTENTS_URL=SITE_CONTENTS_URL_REPLACE
|
||||
- SITE_CONTACT_URL=SITE_CONTACT_URL_REPLACE
|
||||
# - APACHE_RUN_USER=1000
|
||||
# - APACHE_RUN_GROUP=1000
|
||||
networks:
|
||||
|
||||
@@ -12,8 +12,8 @@ services:
|
||||
environment:
|
||||
- PROVISION_UID=PROVISION_UID_REPLACE
|
||||
- TEMPLATE_NAME=TEMPLATE_NAME_REPLACE
|
||||
- SITE_CONTENTS_URL=http://10.10.10.101:14700/web/contents
|
||||
- SITE_CONTACT_URL=http://10.10.10.101:14700/web/contacts
|
||||
- SITE_CONTENTS_URL=SITE_CONTENTS_URL_REPLACE
|
||||
- SITE_CONTACT_URL=SITE_CONTACT_URL_REPLACE
|
||||
# - APACHE_RUN_USER=1000
|
||||
# - APACHE_RUN_GROUP=1000
|
||||
networks:
|
||||
|
||||
@@ -181,6 +181,9 @@ class Provision extends BaseController
|
||||
$composer_template_contents = str_replace("CNT_DB_DATA", '172.16.4.96:3307', $composer_template_contents);
|
||||
$composer_template_contents = str_replace("PROVISION_UID_REPLACE", $provisionUID, $composer_template_contents);
|
||||
$composer_template_contents = str_replace("PROVISION_IMAGE_NAME_REPLACE","registry.chiefsoft.com/pweb/pweb-01-merms-pweb0006c:latest", $composer_template_contents);
|
||||
$composer_template_contents = str_replace("SITE_CONTENTS_URL_REPLACE", "http://10.10.10.101:14700/web/contents", $composer_template_contents);
|
||||
$composer_template_contents = str_replace("SITE_CONTACT_URL_REPLACE", "http://10.10.10.101:14700/web/contacts", $composer_template_contents);
|
||||
|
||||
$templateRandom = 'P' . rand(1, 6);
|
||||
$composer_template_contents = str_replace("TEMPLATE_NAME_REPLACE", $templateRandom, $composer_template_contents);
|
||||
|
||||
@@ -380,6 +383,9 @@ class Provision extends BaseController
|
||||
$composer_template_contents = str_replace("CNT_DB_DATA", '172.16.4.96:3307', $composer_template_contents);
|
||||
$composer_template_contents = str_replace("PROVISION_UID_REPLACE", $provisionUID, $composer_template_contents);
|
||||
$composer_template_contents = str_replace("PROVISION_IMAGE_NAME_REPLACE","registry.chiefsoft.com/pweb/pweb-01-merms-pweb0006c:latest", $composer_template_contents);
|
||||
$composer_template_contents = str_replace("SITE_CONTENTS_URL_REPLACE", "http://10.10.10.101:14700/web/contents", $composer_template_contents);
|
||||
$composer_template_contents = str_replace("SITE_CONTACT_URL_REPLACE", "http://10.10.10.101:14700/web/contacts", $composer_template_contents);
|
||||
|
||||
|
||||
$templateRandom = 'P' . rand(1, 6);
|
||||
$composer_template_contents = str_replace("TEMPLATE_NAME_REPLACE", $templateRandom, $composer_template_contents);
|
||||
|
||||
Reference in New Issue
Block a user