mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-04-05 17:33:31 -04:00
Compare commits
3 Commits
fc674d6008
...
f9f3f3de12
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9f3f3de12 | ||
|
|
abab886d1a | ||
|
|
acc82af7cd |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -30,3 +30,5 @@ llms-*
|
||||
embeddings*
|
||||
*bible.xml
|
||||
engwebu_usfx.xml
|
||||
|
||||
deploy.log
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo "Pulling latest changes..."
|
||||
git pull
|
||||
|
||||
echo "Installing dependencies..."
|
||||
bun i
|
||||
|
||||
echo "Pushing database changes..."
|
||||
bun run db:generate
|
||||
bun run db:migrate
|
||||
|
||||
echo "Building..."
|
||||
bun --bun run build
|
||||
|
||||
echo "Restarting service..."
|
||||
sudo systemctl restart bibdle-test
|
||||
|
||||
echo "Done!"
|
||||
18
deploy.sh
18
deploy.sh
@@ -3,16 +3,24 @@ set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
BUN=$(which bun)
|
||||
|
||||
echo "Pulling latest changes..."
|
||||
git pull
|
||||
PULL_OUTPUT=$(git pull)
|
||||
echo "$PULL_OUTPUT"
|
||||
if [ "$PULL_OUTPUT" = "Already up to date." ]; then
|
||||
echo "Nothing to deploy."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Installing dependencies..."
|
||||
bun i
|
||||
$BUN i
|
||||
|
||||
echo "Building..."
|
||||
bun --bun run build
|
||||
$BUN --bun run build
|
||||
|
||||
echo "Restarting service..."
|
||||
sudo systemctl restart bibdle
|
||||
SERVICE_NAME="$(basename "$(pwd)").service"
|
||||
echo "Restarting service ($SERVICE_NAME)..."
|
||||
sudo systemctl restart "$SERVICE_NAME"
|
||||
|
||||
echo "Done!"
|
||||
|
||||
Reference in New Issue
Block a user