2bb5feeb88
Squashed commit of the following: commit86e6600749
Author: Nabarun <nabarun@deepstacksoft.com> Date: Tue May 21 11:59:32 2024 +0530 Update staging deployment records with new config values commit3f11ff3da1
Author: Nabarun <nabarun@deepstacksoft.com> Date: Tue May 21 11:02:43 2024 +0530 Update build script for new VITE env variables commitf614199bb8
Author: Nabarun <nabarun@deepstacksoft.com> Date: Fri May 17 12:34:36 2024 +0530 Update subdomain commit0787d2008b
Author: Nabarun <nabarun@deepstacksoft.com> Date: Fri May 17 12:03:29 2024 +0530 Update GitHub client ID and subdomain commitb9ffb691dc
Author: Nabarun <nabarun@deepstacksoft.com> Date: Fri May 17 11:28:22 2024 +0530 Add staging deployment records commit25e47aa5ec
Author: Nabarun <nabarun@deepstacksoft.com> Date: Fri May 17 10:56:26 2024 +0530 Add deployment script for staging
35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
PKG_DIR="./packages/frontend"
|
|
OUTPUT_DIR="${PKG_DIR}/dist"
|
|
DEST_DIR=${1:-/data}
|
|
|
|
if [[ -d "$DEST_DIR" ]]; then
|
|
echo "${DEST_DIR} already exists." 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
cat > $PKG_DIR/.env <<EOF
|
|
VITE_SERVER_URL = 'LACONIC_HOSTED_CONFIG_server_url'
|
|
VITE_GITHUB_CLIENT_ID = 'LACONIC_HOSTED_CONFIG_github_clientid'
|
|
VITE_GITHUB_PWA_TEMPLATE_REPO = 'LACONIC_HOSTED_CONFIG_github_pwa_templaterepo'
|
|
VITE_GITHUB_IMAGE_UPLOAD_PWA_TEMPLATE_REPO = 'LACONIC_HOSTED_CONFIG_github_image_upload_templaterepo'
|
|
VITE_WALLET_CONNECT_ID = 'LACONIC_HOSTED_CONFIG_wallet_connect_id'
|
|
VITE_LIT_RELAY_API_KEY = 'LACONIC_HOSTED_CONFIG_lit_relay_api_key'
|
|
VITE_ALCHEMY_API_KEY = 'LACONIC_HOSTED_CONFIG_aplchemy_api_key'
|
|
VITE_BUGSNAG_API_KEY = 'LACONIC_HOSTED_CONFIG_bugsnag_api_key'
|
|
VITE_PASSKEY_WALLET_RPID = 'LACONIC_HOSTED_CONFIG_passkey_wallet_rpid'
|
|
VITE_TURNKEY_API_BASE_URL = 'LACONIC_HOSTED_CONFIG_turnkey_api_base_url'
|
|
VITE_TURNKEY_ORGANIZATION_ID = 'LACONIC_HOSTED_CONFIG_turnkey_organization_id'
|
|
EOF
|
|
|
|
yarn || exit 1
|
|
yarn build || exit 1
|
|
|
|
if [[ ! -d "$OUTPUT_DIR" ]]; then
|
|
echo "Missing output directory: $OUTPUT_DIR" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
mv "$OUTPUT_DIR" "$DEST_DIR"
|