mirror of
https://github.com/renorris/openfsd
synced 2026-03-22 14:35:36 +08:00
add windows batch file runner
This commit is contained in:
10
run-windows.bat
Normal file
10
run-windows.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
|
||||
title openfsd
|
||||
|
||||
start /b cmd /c "set DATABASE_AUTO_MIGRATE=true&& set DATABASE_SOURCE_NAME=openfsd.db?_pragma=busy_timeout(5000)^&_pragma=journal_mode(WAL)&& go run ."
|
||||
|
||||
powershell -Command "while (-not (Test-NetConnection -ComputerName localhost -Port 13618 -InformationLevel Quiet)) { Start-Sleep -Seconds 1 }"
|
||||
|
||||
cmd /c "cd web&& set FSD_HTTP_SERVICE_ADDRESS=http://localhost:13618&& set DATABASE_SOURCE_NAME=../openfsd.db?_pragma=busy_timeout(5000)^&_pragma=journal_mode(WAL)&& go run ."
|
||||
start /b cd web && go run .
|
||||
Reference in New Issue
Block a user