Compare commits

..

3 Commits

Author SHA1 Message Date
0373eb4ea8 Merge pull request 'Fix script host location' (#11) from add-php83 into trunk
All checks were successful
Cloud Apache Container / Build-and-Push (push) Successful in 33s
Reviewed-on: #11
2024-10-02 16:44:31 +00:00
36757fac8f fix docker command 2024-10-02 09:43:47 -07:00
0c8bdc4f04 Update local-dev script 2024-10-02 09:40:53 -07:00

View File

@ -43,7 +43,7 @@ fi
if [ ! -d "$root_path/web" ]; then if [ ! -d "$root_path/web" ]; then
mkdir -p "$root_path/web"; mkdir -p "$root_path/web";
fi 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" repo.anhonesthost.net/cloud-hosting-platform/cac:latest
echo "Creating management scripts in root directory..." echo "Creating management scripts in root directory..."
echo "#!/usr/bin/env bash" > "$root_path/instance_start" echo "#!/usr/bin/env bash" > "$root_path/instance_start"
echo "docker start $name" >> "$root_path/instance_start" echo "docker start $name" >> "$root_path/instance_start"