feat(explorer): add live token/native pricing and legacy tx route compatibility
Some checks failed
phoenix-deploy Deploy failed: Command failed: bash scripts/deployment/phoenix-deploy-explorer-live-from-workspace.sh
nginx: the configuration file /et
Deploy Explorer Live / deploy (push) Failing after 4m8s
Some checks failed
phoenix-deploy Deploy failed: Command failed: bash scripts/deployment/phoenix-deploy-explorer-live-from-workspace.sh
nginx: the configuration file /et
Deploy Explorer Live / deploy (push) Failing after 4m8s
This commit is contained in:
@@ -24,6 +24,7 @@ RELEASE_ID="$(date +%Y%m%d_%H%M%S)"
|
||||
TMP_DIR="$(mktemp -d)"
|
||||
ARCHIVE_NAME="solacescanscout-next-${RELEASE_ID}.tar"
|
||||
BUILD_LOCK_DIR="${FRONTEND_ROOT}/.next-build-lock"
|
||||
STANDALONE_ROOT="${FRONTEND_ROOT}/.next/standalone"
|
||||
STATIC_SYNC_FILES=(
|
||||
"index.html"
|
||||
"docs.html"
|
||||
@@ -110,16 +111,31 @@ if [[ "${SKIP_BUILD:-0}" != "1" ]]; then
|
||||
echo ""
|
||||
fi
|
||||
|
||||
if [[ ! -f "${FRONTEND_ROOT}/.next/standalone/server.js" ]]; then
|
||||
APP_RELATIVE_DIR="."
|
||||
APP_SERVER_PATH="${STANDALONE_ROOT}/server.js"
|
||||
if [[ ! -f "${APP_SERVER_PATH}" ]]; then
|
||||
ALT_SERVER_PATH="$(find "${STANDALONE_ROOT}" -path '*/server.js' -print | head -n 1 || true)"
|
||||
if [[ -n "${ALT_SERVER_PATH}" ]]; then
|
||||
APP_SERVER_PATH="${ALT_SERVER_PATH}"
|
||||
APP_RELATIVE_DIR="$(dirname "${ALT_SERVER_PATH#${STANDALONE_ROOT}/}")"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -f "${APP_SERVER_PATH}" ]]; then
|
||||
echo "Missing standalone server build. Run \`npm run build\` in ${FRONTEND_ROOT} first." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
STAGE_DIR="${TMP_DIR}/stage"
|
||||
mkdir -p "${STAGE_DIR}/.next"
|
||||
cp -R "${FRONTEND_ROOT}/.next/standalone/." "$STAGE_DIR/"
|
||||
cp -R "${FRONTEND_ROOT}/.next/static" "${STAGE_DIR}/.next/static"
|
||||
cp -R "${FRONTEND_ROOT}/public" "${STAGE_DIR}/public"
|
||||
APP_STAGE_DIR="${STAGE_DIR}"
|
||||
if [[ "${APP_RELATIVE_DIR}" != "." ]]; then
|
||||
APP_STAGE_DIR="${STAGE_DIR}/${APP_RELATIVE_DIR}"
|
||||
fi
|
||||
|
||||
mkdir -p "${APP_STAGE_DIR}/.next"
|
||||
cp -R "${STANDALONE_ROOT}/." "$STAGE_DIR/"
|
||||
cp -R "${FRONTEND_ROOT}/.next/static" "${APP_STAGE_DIR}/.next/static"
|
||||
cp -R "${FRONTEND_ROOT}/public" "${APP_STAGE_DIR}/public"
|
||||
tar -C "$STAGE_DIR" -cf "${TMP_DIR}/${ARCHIVE_NAME}" .
|
||||
|
||||
cp "$SERVICE_TEMPLATE" "${TMP_DIR}/${SERVICE_NAME}.service"
|
||||
|
||||
Reference in New Issue
Block a user