A00006 added

This commit is contained in:
CHIEFSOFT\ameye
2025-10-11 11:51:43 -04:00
parent 2adfd1d85a
commit 1b37af20d8
3 changed files with 49 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
---
- hosts: WHAT_HOST_IN_USE
tasks:
- name: Creates directory DESTINATION_FOLDER
ansible.builtin.file:
path: DESTINATION_FOLDER
state: directory
mode: 0775
recurse: yes
- name: Set up docker-compose file
template:
src: "WHAT_PART_LOCAL/docker-compose.yml"
dest: "DESTINATION_FOLDER"
- name: docker compose up
shell:
chdir: "DESTINATION_FOLDER/"
cmd: docker-compose up -d
@@ -0,0 +1,21 @@
services:
mermsemr-WHAT_CONTAINER_NAME:
image: PROVISION_IMAGE_NAME_REPLACE
ports:
- "${APP_PORT}:3000"
volumes:
- .:/app
- /app/node_modules
- /app/.next
environment:
- WDS_SOCKET_HOST=localhost # Or your Docker IP if needed
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
extra_hosts:
- api.mermsemr.com:10.10.33.15
- devapi.mermsemr.com:10.10.33.15
- devsocket.mermsemr.com:10.10.33.15
- socket.mermsemr.com:10.10.33.15
- dev-media.mermsemr.com:10.10.33.15
- media.mermsemr.com:10.10.33.15
command: yarn dev # or npm run dev
+8 -1
View File
@@ -669,7 +669,10 @@ class Provision extends BaseController
{
$portF = 0;
try {
$mysql = "SELECT max(provision_port) AS max_port FROM members_products WHERE product_id = '" . $productId . "'";
$mysql = "SELECT max(provision_port) AS max_port
FROM members_products
WHERE product_id = '" . $productId . "'";
$query = $this->db->query($mysql);
$maxItem = $query->getResult()[0]->max_port;
//var_dump($maxItem);
@@ -690,6 +693,9 @@ class Provision extends BaseController
case "A000003":
$maxItem = 6600;
break;
case "A000006":
$maxItem = 22000;
break;
}
} else {
$maxItem = $maxItem + 1;
@@ -714,6 +720,7 @@ class Provision extends BaseController
$primaryServer = $_ENV['DEPLOYMENT_SERVER_2'];
break;
case "A000005":
case "A000006":
$primaryServer = $_ENV['DEPLOYMENT_SERVER_3'];
break;
}