From fca9a73bb83da4b717c3d4bfa62f09357eb440ee Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 29 Sep 2021 23:58:14 -0600 Subject: [PATCH] Update Vite config and deploy script to work. --- site/deploy.sh | 6 +++--- site/vite.config.js | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 site/deploy.sh diff --git a/site/deploy.sh b/site/deploy.sh old mode 100644 new mode 100755 index bcaeedf..56ea525 --- a/site/deploy.sh +++ b/site/deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env sh # abort on errors set -e @@ -10,7 +10,7 @@ npm run build cd dist # if you are deploying to a custom domain -# echo 'oliver.akins.me' > CNAME +# echo 'www.example.com' > CNAME git init git add -A @@ -20,6 +20,6 @@ git commit -m 'deploy' # git push -f git@github.com:/.github.io.git master # if you are deploying to https://.github.io/ -git push -f git@github.com:Oliver-Akins/Quote-Bracket.git rewrite:gh-pages +git push -f git@github.com:Oliver-Akins/Quote-Bracket.git master:gh-pages cd - \ No newline at end of file diff --git a/site/vite.config.js b/site/vite.config.js index 95971b4..8010715 100644 --- a/site/vite.config.js +++ b/site/vite.config.js @@ -3,5 +3,6 @@ import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [vue()] + plugins: [vue()], + base: `/Quote-Bracket/`, })