235a9abbfe
- Replace hardcoded secret_key with os.environ.get('SECRET_KEY')
- RuntimeError if SECRET_KEY not set (fail fast)
- Restrict CORS to localhost:8765 origins (was allow all with credentials)
- Add .gitignore excluding db, env, __pycache__, backups
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
323 B
Batchfile
16 lines
323 B
Batchfile
@echo off
|
|
set PID_FILE=%~dp0.server.pid
|
|
|
|
if not exist "%PID_FILE%" (
|
|
echo No hay ninguna instancia de Boat^&Ship-Finder corriendo.
|
|
pause
|
|
exit /b 0
|
|
)
|
|
|
|
set /p PID=<"%PID_FILE%"
|
|
echo Cerrando Boat^&Ship-Finder (PID %PID%)...
|
|
taskkill /F /PID %PID% >nul 2>&1
|
|
del "%PID_FILE%" >nul 2>&1
|
|
echo Servidor cerrado.
|
|
pause
|