Initial Helpomatica source.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
if (-not (Test-Path ".deps\fastapi")) {
|
||||
python -m pip install --target .deps -r requirements.txt
|
||||
}
|
||||
|
||||
$env:PYTHONPATH = Join-Path $PWD ".deps"
|
||||
$env:HELPMATICA_ROOT = $PWD
|
||||
|
||||
if (-not (Test-Path ".env")) {
|
||||
Write-Host ""
|
||||
Write-Host "Создайте .env из .env.example и добавьте CURSOR_API_KEY для ответов AI." -ForegroundColor Yellow
|
||||
Write-Host "Ключ: https://cursor.com/dashboard/integrations" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
}
|
||||
|
||||
# Bind 0.0.0.0 so other machines on the LAN can reach this host.
|
||||
# Local: http://127.0.0.1:8010 | LAN: http://<this-machine-ip>:8010
|
||||
# Windows Firewall may need an inbound allow for TCP 8010.
|
||||
python -m uvicorn main:app --reload --reload-dir . --host 0.0.0.0 --port 8010
|
||||
Reference in New Issue
Block a user