Removed some not needed commands

This commit is contained in:
2025-03-11 01:17:38 +03:00
parent 2bf5caf80f
commit c89e3bdada
3 changed files with 17 additions and 5 deletions

View File

@@ -27,7 +27,6 @@ RUN pip install --no-cache-dir -r files/requirements.txt
COPY . .
RUN rm files/db.sqlite
RUN /usr/local/bin/alembic -c alembic/alembic.ini upgrade head
# Command to run the FastAPI application

View File

@@ -4,12 +4,21 @@ APP_DIR="$HOME/.db-middleware"
CODE_DIR="$HOME/.db-middleware/code"
install() {
echo "Installing the Middleware."
echo
echo "+------------------------------+"
echo "| Installing the Middleware... |"
echo "+------------------------------+"
echo
cd "$CODE_DIR"
docker build -t db-middleware .
echo "Installed the Middleware Successfully."
echo
echo "+----------------------------------------+"
echo "| Installed the Middleware Successfully. |"
echo "+----------------------------------------+"
echo
}
# Function for the "upgrade" command

View File

@@ -49,4 +49,8 @@ cp "$CODE_DIR/scripts/"* "$APP_DIR/scripts/"
chmod +x "$APP_DIR/scripts/"*
# Run the manager.sh script with the "install" argument
echo
echo "--------------------"
echo
"$APP_DIR/scripts/manager.sh" install