diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 64beee5..9f1906f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -12,4 +12,5 @@ jobs: git config --global --add safe.directory /home/ubuntu/apps/linebot_finance cd /home/ubuntu/apps/linebot_finance git pull - docker compose up -d --build \ No newline at end of file + docker compose up -d --build + diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index 593098d..708c8fc --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ __pycache__/ # docker-compose.yml ← 改好後可以上傳,不用擋 # OS 檔案 +postgres_data/ diff --git a/app/.python-version b/app/.python-version old mode 100644 new mode 100755 diff --git a/app/DB/Models.py b/app/DB/Models.py old mode 100644 new mode 100755 diff --git a/app/DB/Session.py b/app/DB/Session.py old mode 100644 new mode 100755 diff --git a/app/Dockerfile b/app/Dockerfile old mode 100644 new mode 100755 diff --git a/app/Invoice/Router.py b/app/Invoice/Router.py old mode 100644 new mode 100755 diff --git a/app/Linebot_handler/Captcha_state.py b/app/Linebot_handler/Captcha_state.py old mode 100644 new mode 100755 diff --git a/app/Linebot_handler/Expense.py b/app/Linebot_handler/Expense.py old mode 100644 new mode 100755 diff --git a/app/Linebot_handler/Handlers.py b/app/Linebot_handler/Handlers.py old mode 100644 new mode 100755 diff --git a/app/Linebot_handler/Router.py b/app/Linebot_handler/Router.py old mode 100644 new mode 100755 diff --git a/app/README.md b/app/README.md old mode 100644 new mode 100755 diff --git a/app/Trading/Router.py b/app/Trading/Router.py old mode 100644 new mode 100755 diff --git a/app/captcha_state.py b/app/captcha_state.py old mode 100644 new mode 100755 diff --git a/app/config.py b/app/config.py old mode 100644 new mode 100755 diff --git a/app/create_rich_menu.py b/app/create_rich_menu.py old mode 100644 new mode 100755 diff --git a/app/invoice_fetcher.py b/app/invoice_fetcher.py old mode 100644 new mode 100755 diff --git a/app/main.py b/app/main.py old mode 100644 new mode 100755 diff --git a/app/old_main.py b/app/old_main.py old mode 100644 new mode 100755 diff --git a/app/pyproject.toml b/app/pyproject.toml old mode 100644 new mode 100755 diff --git a/app/requirement.txt b/app/requirement.txt old mode 100644 new mode 100755 diff --git a/app/rich_menu.png b/app/rich_menu.png old mode 100644 new mode 100755 diff --git a/app/uv.lock b/app/uv.lock old mode 100644 new mode 100755 diff --git a/docker-compose.yml b/docker-compose.yml old mode 100644 new mode 100755 index 9293900..b0b8218 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3.8' services: app: build: ./app @@ -6,22 +5,5 @@ services: - "8000:8000" env_file: - .env - depends_on: - - db volumes: - - ./app:/app - - /app/.venv - - db: - image: postgres:15 - environment: - POSTGRES_USER: ${POSTGRES_USER} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} - POSTGRES_DB: ${POSTGRES_DB} - ports: - - "5432:5432" - volumes: - - pgdata:/var/lib/postgresql/data - -volumes: - pgdata: \ No newline at end of file + - ./app:/app \ No newline at end of file diff --git a/structure.txt b/structure.txt old mode 100644 new mode 100755