From 0c8bdc4f04d6f02a962ad23a260b423f7903dfef Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Wed, 2 Oct 2024 09:40:53 -0700 Subject: [PATCH 1/2] Update local-dev script --- local-dev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-dev.sh b/local-dev.sh index f6c45a1..614858f 100755 --- a/local-dev.sh +++ b/local-dev.sh @@ -43,7 +43,7 @@ fi if [ ! -d "$root_path/web" ]; then mkdir -p "$root_path/web"; fi -$check_docker run -d -p "$http_port":80 -p "$https_port":443 -e PHPVER=82 -e environment=DEV --mount type=bind,source="$root_path"/web,target=/home/"$user"/public_html --mount type=bind,source="$root_path"/db,target=/var/lib/mysql -e uid="$uid" -e user="$user" -e domain="$name-local.dev" --name "$name" public.ecr.aws/s1f6k4w4/cac +$check_docker run -d -p "$http_port":80 -p "$https_port":443 -e PHPVER=82 -e environment=DEV --mount type=bind,source="$root_path"/web,target=/home/"$user"/public_html --mount type=bind,source="$root_path"/db,target=/var/lib/mysql -e uid="$uid" -e user="$user" -e domain="$name-local.dev" --name "$name" pull repo.anhonesthost.net/cloud-hosting-platform/cac:latest echo "Creating management scripts in root directory..." echo "#!/usr/bin/env bash" > "$root_path/instance_start" echo "docker start $name" >> "$root_path/instance_start" -- 2.43.5 From 36757fac8fdcef13990e9bb4ca2089e7bd609e84 Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Wed, 2 Oct 2024 09:43:47 -0700 Subject: [PATCH 2/2] fix docker command --- local-dev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-dev.sh b/local-dev.sh index 614858f..2eda4fa 100755 --- a/local-dev.sh +++ b/local-dev.sh @@ -43,7 +43,7 @@ fi if [ ! -d "$root_path/web" ]; then mkdir -p "$root_path/web"; fi -$check_docker run -d -p "$http_port":80 -p "$https_port":443 -e PHPVER=82 -e environment=DEV --mount type=bind,source="$root_path"/web,target=/home/"$user"/public_html --mount type=bind,source="$root_path"/db,target=/var/lib/mysql -e uid="$uid" -e user="$user" -e domain="$name-local.dev" --name "$name" pull repo.anhonesthost.net/cloud-hosting-platform/cac:latest +$check_docker run -d -p "$http_port":80 -p "$https_port":443 -e PHPVER=82 -e environment=DEV --mount type=bind,source="$root_path"/web,target=/home/"$user"/public_html --mount type=bind,source="$root_path"/db,target=/var/lib/mysql -e uid="$uid" -e user="$user" -e domain="$name-local.dev" --name "$name" repo.anhonesthost.net/cloud-hosting-platform/cac:latest echo "Creating management scripts in root directory..." echo "#!/usr/bin/env bash" > "$root_path/instance_start" echo "docker start $name" >> "$root_path/instance_start" -- 2.43.5