Skip to content

Commit baa3fb3

Browse files
committed
Fix Windows compatibility for Forensic CPA AI deployment
- Convert bundle paths to use Windows backslashes (C:\\Users\\...) - Convert batch files to Windows CRLF line endings - Ensure proper deployment on Windows target system https://claude.ai/code/session_01VzBz78XPLwNAzDDaSFsTbC
1 parent 7b4d879 commit baa3fb3

File tree

3 files changed

+132
-132
lines changed

3 files changed

+132
-132
lines changed

forensic_cpa_ai/DEPLOY.bat

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
@echo off
2-
REM Deployment script for Forensic CPA AI
3-
REM This script copies the project files to the target directory
4-
5-
echo ╔═══════════════════════════════════════════════════════════════════╗
6-
echo ║ Forensic CPA AI - Deployment Script ║
7-
echo ╚═══════════════════════════════════════════════════════════════════╝
8-
echo.
9-
10-
REM Set the target directory
11-
set TARGET_DIR=C:\Users\nedpe\Desktop\Repositories\Forensic_CPA_AI
12-
13-
echo Target directory: %TARGET_DIR%
14-
echo.
15-
16-
REM Check if target directory exists
17-
if not exist "%TARGET_DIR%" (
18-
echo Creating target directory...
19-
mkdir "%TARGET_DIR%"
20-
)
21-
22-
echo Copying project files...
23-
24-
REM Copy all project files
25-
copy /Y main.py "%TARGET_DIR%\"
26-
copy /Y requirements.txt "%TARGET_DIR%\"
27-
copy /Y README.md "%TARGET_DIR%\"
28-
copy /Y SETUP_INSTRUCTIONS.md "%TARGET_DIR%\"
29-
copy /Y .env.example "%TARGET_DIR%\"
30-
copy /Y .gitignore "%TARGET_DIR%\"
31-
copy /Y local-nexus.bundle.json "%TARGET_DIR%\"
32-
33-
echo.
34-
echo ═══════════════════════════════════════════════════════════════════
35-
echo Files copied successfully!
36-
echo.
37-
echo Next steps:
38-
echo 1. Navigate to: %TARGET_DIR%
39-
echo 2. Run: python -m venv .venv
40-
echo 3. Run: .venv\Scripts\activate
41-
echo 4. Run: pip install -r requirements.txt
42-
echo 5. Run: python main.py
43-
echo.
44-
echo Or simply run QUICK_START.bat in the target directory
45-
echo ═══════════════════════════════════════════════════════════════════
46-
echo.
47-
48-
pause
1+
@echo off
2+
REM Deployment script for Forensic CPA AI
3+
REM This script copies the project files to the target directory
4+
5+
echo ╔═══════════════════════════════════════════════════════════════════╗
6+
echo ║ Forensic CPA AI - Deployment Script ║
7+
echo ╚═══════════════════════════════════════════════════════════════════╝
8+
echo.
9+
10+
REM Set the target directory
11+
set TARGET_DIR=C:\Users\nedpe\Desktop\Repositories\Forensic_CPA_AI
12+
13+
echo Target directory: %TARGET_DIR%
14+
echo.
15+
16+
REM Check if target directory exists
17+
if not exist "%TARGET_DIR%" (
18+
echo Creating target directory...
19+
mkdir "%TARGET_DIR%"
20+
)
21+
22+
echo Copying project files...
23+
24+
REM Copy all project files
25+
copy /Y main.py "%TARGET_DIR%\"
26+
copy /Y requirements.txt "%TARGET_DIR%\"
27+
copy /Y README.md "%TARGET_DIR%\"
28+
copy /Y SETUP_INSTRUCTIONS.md "%TARGET_DIR%\"
29+
copy /Y .env.example "%TARGET_DIR%\"
30+
copy /Y .gitignore "%TARGET_DIR%\"
31+
copy /Y local-nexus.bundle.json "%TARGET_DIR%\"
32+
33+
echo.
34+
echo ═══════════════════════════════════════════════════════════════════
35+
echo Files copied successfully!
36+
echo.
37+
echo Next steps:
38+
echo 1. Navigate to: %TARGET_DIR%
39+
echo 2. Run: python -m venv .venv
40+
echo 3. Run: .venv\Scripts\activate
41+
echo 4. Run: pip install -r requirements.txt
42+
echo 5. Run: python main.py
43+
echo.
44+
echo Or simply run QUICK_START.bat in the target directory
45+
echo ═══════════════════════════════════════════════════════════════════
46+
echo.
47+
48+
pause

forensic_cpa_ai/QUICK_START.bat

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
1-
@echo off
2-
REM Quick Start script for Forensic CPA AI
3-
REM Run this from the project directory
4-
5-
echo ╔═══════════════════════════════════════════════════════════════════╗
6-
echo ║ Forensic CPA AI - Quick Start ║
7-
echo ╚═══════════════════════════════════════════════════════════════════╝
8-
echo.
9-
10-
REM Check if Python is available
11-
python --version >nul 2>&1
12-
if errorlevel 1 (
13-
echo ERROR: Python is not installed or not in PATH
14-
echo.
15-
echo Please install Python from:
16-
echo - Microsoft Store: Search for "Python 3.12"
17-
echo - Official site: https://www.python.org/downloads/
18-
echo.
19-
pause
20-
exit /b 1
21-
)
22-
23-
echo Python found!
24-
python --version
25-
echo.
26-
27-
REM Check if virtual environment exists
28-
if not exist ".venv" (
29-
echo Creating virtual environment...
30-
python -m venv .venv
31-
if errorlevel 1 (
32-
echo ERROR: Failed to create virtual environment
33-
pause
34-
exit /b 1
35-
)
36-
echo Virtual environment created!
37-
echo.
38-
)
39-
40-
REM Activate virtual environment and install dependencies
41-
echo Activating virtual environment...
42-
call .venv\Scripts\activate.bat
43-
if errorlevel 1 (
44-
echo ERROR: Failed to activate virtual environment
45-
pause
46-
exit /b 1
47-
)
48-
49-
REM Check if dependencies are installed
50-
echo Checking dependencies...
51-
python -c "import flask" >nul 2>&1
52-
if errorlevel 1 (
53-
echo Installing dependencies...
54-
pip install -r requirements.txt
55-
if errorlevel 1 (
56-
echo ERROR: Failed to install dependencies
57-
pause
58-
exit /b 1
59-
)
60-
echo Dependencies installed!
61-
echo.
62-
)
63-
64-
REM Create .env if it doesn't exist
65-
if not exist ".env" (
66-
echo Creating .env file from .env.example...
67-
copy .env.example .env
68-
)
69-
70-
REM Create uploads directory
71-
if not exist "uploads" (
72-
mkdir uploads
73-
)
74-
75-
echo.
76-
echo ═══════════════════════════════════════════════════════════════════
77-
echo Starting Forensic CPA AI...
78-
echo ═══════════════════════════════════════════════════════════════════
79-
echo.
80-
81-
REM Start the application
82-
python main.py
1+
@echo off
2+
REM Quick Start script for Forensic CPA AI
3+
REM Run this from the project directory
4+
5+
echo ╔═══════════════════════════════════════════════════════════════════╗
6+
echo ║ Forensic CPA AI - Quick Start ║
7+
echo ╚═══════════════════════════════════════════════════════════════════╝
8+
echo.
9+
10+
REM Check if Python is available
11+
python --version >nul 2>&1
12+
if errorlevel 1 (
13+
echo ERROR: Python is not installed or not in PATH
14+
echo.
15+
echo Please install Python from:
16+
echo - Microsoft Store: Search for "Python 3.12"
17+
echo - Official site: https://www.python.org/downloads/
18+
echo.
19+
pause
20+
exit /b 1
21+
)
22+
23+
echo Python found!
24+
python --version
25+
echo.
26+
27+
REM Check if virtual environment exists
28+
if not exist ".venv" (
29+
echo Creating virtual environment...
30+
python -m venv .venv
31+
if errorlevel 1 (
32+
echo ERROR: Failed to create virtual environment
33+
pause
34+
exit /b 1
35+
)
36+
echo Virtual environment created!
37+
echo.
38+
)
39+
40+
REM Activate virtual environment and install dependencies
41+
echo Activating virtual environment...
42+
call .venv\Scripts\activate.bat
43+
if errorlevel 1 (
44+
echo ERROR: Failed to activate virtual environment
45+
pause
46+
exit /b 1
47+
)
48+
49+
REM Check if dependencies are installed
50+
echo Checking dependencies...
51+
python -c "import flask" >nul 2>&1
52+
if errorlevel 1 (
53+
echo Installing dependencies...
54+
pip install -r requirements.txt
55+
if errorlevel 1 (
56+
echo ERROR: Failed to install dependencies
57+
pause
58+
exit /b 1
59+
)
60+
echo Dependencies installed!
61+
echo.
62+
)
63+
64+
REM Create .env if it doesn't exist
65+
if not exist ".env" (
66+
echo Creating .env file from .env.example...
67+
copy .env.example .env
68+
)
69+
70+
REM Create uploads directory
71+
if not exist "uploads" (
72+
mkdir uploads
73+
)
74+
75+
echo.
76+
echo ═══════════════════════════════════════════════════════════════════
77+
echo Starting Forensic CPA AI...
78+
echo ═══════════════════════════════════════════════════════════════════
79+
echo.
80+
81+
REM Start the application
82+
python main.py

forensic_cpa_ai/local-nexus.bundle.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"tags": ["python", "flask", "forensic", "accounting", "document-processing"],
88
"tech_stack": ["python", "flask"],
99
"dependencies": [],
10-
"config_paths": ["C:/Users/nedpe/Desktop/Repositories/Forensic_CPA_AI/.env"],
10+
"config_paths": ["C:\\Users\\nedpe\\Desktop\\Repositories\\Forensic_CPA_AI\\.env"],
1111
"port": 5000,
1212
"local_url": "http://127.0.0.1:5000",
1313
"healthcheck_url": "http://127.0.0.1:5000/health",
14-
"working_directory": "C:/Users/nedpe/Desktop/Repositories/Forensic_CPA_AI",
14+
"working_directory": "C:\\Users\\nedpe\\Desktop\\Repositories\\Forensic_CPA_AI",
1515
"start_command": "python main.py",
1616
"stop_command": "",
1717
"restart_command": "",

0 commit comments

Comments
 (0)