feat(deploy): add Ubuntu 26.04 production package
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
# shellcheck source=lib.sh
|
||||
source "$(dirname -- "${BASH_SOURCE[0]}")/lib.sh"
|
||||
|
||||
env_file="${1:-/etc/lehuo/lehuo.env}"
|
||||
require_command curl
|
||||
require_env_file "$env_file"
|
||||
|
||||
public_host="$(env_value "$env_file" PUBLIC_HOST)"
|
||||
files_host="$(env_value "$env_file" FILES_HOST)"
|
||||
|
||||
curl --fail --silent --show-error --max-time 15 "https://${public_host}/health/live" >/dev/null
|
||||
curl --fail --silent --show-error --max-time 15 "https://${public_host}/health/ready" >/dev/null
|
||||
curl --fail --silent --show-error --max-time 15 "https://${public_host}/" >/dev/null
|
||||
curl --fail --silent --show-error --max-time 15 "https://${files_host}/minio/health/live" >/dev/null
|
||||
|
||||
echo 'HTTPS、API readiness、管理后台与对象存储冒烟检查通过。'
|
||||
Reference in New Issue
Block a user