\`•̀益•́´/
parent
68af176863
commit
93235ea579
|
@ -3,6 +3,9 @@
|
||||||
# Get the full path to the dist directory
|
# Get the full path to the dist directory
|
||||||
APP_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
APP_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
|
|
||||||
|
# The name of your Cloudflare project
|
||||||
|
CF_PROJECT="wakale-casa"
|
||||||
|
|
||||||
# Function to check if a command exists
|
# Function to check if a command exists
|
||||||
command_exists() {
|
command_exists() {
|
||||||
command -v "$1" > /dev/null 2>&1
|
command -v "$1" > /dev/null 2>&1
|
||||||
|
@ -66,10 +69,9 @@ if [ -f "$APP_PATH/packages.json" ]; then
|
||||||
npm run build
|
npm run build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Deploy to Cloudflare Pages using the full path to dist
|
# Deploy to Cloudflare Pages using the full path to dist
|
||||||
echo "Deploying $APP_PATH/www"
|
echo "Deploying $APP_PATH/www"
|
||||||
|
|
||||||
wrangler pages deploy "$APP_PATH/www"
|
wrangler pages deploy --project-name "$CF_PROJECT" "$APP_PATH/www"
|
||||||
|
|
||||||
echo "DONE."
|
echo "DONE."
|
||||||
|
|
Loading…
Reference in New Issue