f60e7b5ad1
Build Server .exe / build (push) Failing after 2m30s
- start.bat and start.sh now create conda env (paperdash, Python 3.11) - README updated with conda setup instructions - Fixes pyhwinfo installation issues on Python 3.12+
34 lines
793 B
Batchfile
34 lines
793 B
Batchfile
@echo off
|
|
REM PaperDash Server Startup Script
|
|
REM Creates conda env if needed, installs dependencies, and starts the server
|
|
|
|
setlocal
|
|
|
|
cd /d "%~dp0"
|
|
|
|
REM Check if conda env exists
|
|
if not exist "conda_env" (
|
|
echo Creating conda environment...
|
|
conda create -y -n paperdash python=3.11
|
|
call conda activate paperdash
|
|
) else (
|
|
call conda activate paperdash
|
|
)
|
|
|
|
REM Install dependencies
|
|
echo Installing dependencies...
|
|
pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
REM Run the server
|
|
echo Starting PaperDash server...
|
|
echo Dashboard: http://localhost:8921
|
|
echo API docs: http://localhost:8921/docs
|
|
echo.
|
|
echo Set environment variables before starting:
|
|
echo DASHBOARD_PIN=1234
|
|
echo API_TOKEN=your-token
|
|
echo.
|
|
|
|
uvicorn main:app --host 0.0.0.0 --port 8921 --reload
|