2024-08-09 15:13:56 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
# vim: syn=zsh
|
2022-05-24 18:56:59 +00:00
|
|
|
|
|
|
|
export build_dir="/opt/build"
|
|
|
|
export apps_dir="/mount/data0/apps"
|
2023-05-24 20:16:24 +00:00
|
|
|
export PGHOST="dev.cpmixkhfrend.us-east-1.rds.amazonaws.com"
|
2022-05-24 18:56:59 +00:00
|
|
|
|
2024-08-09 15:13:56 +00:00
|
|
|
for build_path in "$build_dir"/* ; do
|
2022-05-24 18:56:59 +00:00
|
|
|
if [[ $build_path =~ "shared" ]]; then
|
|
|
|
continue;
|
|
|
|
fi
|
|
|
|
# get the env name from the full path.
|
2024-08-09 15:13:56 +00:00
|
|
|
local env_name=$(basename "$build_path" )
|
|
|
|
eval "export '${env_name}_build=${build_path}'"
|
|
|
|
eval "export '${env_name}_app=${apps_dir}/${env_name}'"
|
|
|
|
eval "export '${env_name}_logs=${apps_dir}/${env_name}/logs'"
|
2022-05-24 18:56:59 +00:00
|
|
|
done
|