5a43432b80
Replaced the io.Writers with http.ResponseWriters. Refactored the compiled template calls. Redirect port 443 to port 80. Catch more errors from templates. Fixed a few mutexes which are never unlocked. Eliminated an unnecessary parameter in InternalError() Temporarily commented out users_penalties so that the installer will succeed. A couple more template types can be remapped now. Tweaked the theme.
38 lines
659 B
Batchfile
38 lines
659 B
Batchfile
@echo off
|
|
echo Generating the dynamic code
|
|
go generate
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo Building the router generator
|
|
go build ./router_gen
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
echo Running the router generator
|
|
router_gen.exe
|
|
|
|
echo Building the query generator
|
|
go build ./query_gen
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
echo Running the query generator
|
|
query_gen.exe
|
|
|
|
echo Building the executable
|
|
go build -o gosora.exe
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo Running Gosora
|
|
gosora.exe
|
|
rem Or you could redirect the output to a file
|
|
rem gosora.exe > operations.log 2>&1
|
|
pause |