mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
Merge pull request #78 from fleetbase/dev-main
includes small update to retain mysql data locally, also includes upd…
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -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/*
|
||||
@@ -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
22
update.sh
Normal 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!"
|
||||
Reference in New Issue
Block a user