Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions startserver
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
cd fri/server
if ! command -v python3 >/dev/null 2>&1; then
python main.py
else
python3 main.py
fi

if [ $? -ne 0 ]; then
echo ""
echo "Error: Make sure modules are installed from fri/requirements.txt"
echo "Run: pip install -r fri/requirements.txt"
echo ""
fi
8 changes: 8 additions & 0 deletions startserver.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cd fri\server
python main.py
if errorlevel 1 (
echo.
echo Error: Make sure modules are installed from fri/requirements.txt
echo Run: pip install -r fri/requirements.txt
echo.
)