Merge pull request #78 from fleetbase/dev-main

includes small update to retain mysql data locally, also includes upd…
This commit is contained in:
Ron
2023-07-24 18:07:18 +08:00
committed by GitHub
3 changed files with 26 additions and 1 deletions

4
.gitignore vendored
View File

@@ -15,4 +15,6 @@ api/vendor
act.sh
composer-auth.json
packages/billing-api
packages/billing-engine
packages/billing-engine
docker/database/*
docker/database/mysql/*

View File

@@ -10,6 +10,7 @@ services:
- "3306:3306"
volumes:
- "./docker/database/:/docker-entrypoint-initdb.d/"
- "./docker/database/mysql:/var/lib/mysql"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: "fleetbase"

22
update.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Exit the script as soon as a command fails
set -e
echo "Switching to the main branch..."
git checkout main
echo "Updating submodules..."
git submodule update --init --recursive
echo "Updating console..."
cd console
git checkout main
git pull
cd ..
echo "Building Docker images..."
docker-compose build console
docker-compose build application
echo "Update completed. Run \`docker-compose up -d\` to launch!"