FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Genstack/runserver.bat at main · GenstackOrg/Genstack · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
GenstackOrg
/
Genstack
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Genstack
/
runserver.bat
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (29 loc) · 825 Bytes
Breadcrumbs
Genstack
/
runserver.bat
Copy path
File metadata and controls
35 lines (29 loc) · 825 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@
echo
off
setlocal
::
Check if an environment argument is provided
if
"
%1
"
==
"
"
(
echo
ERROR: No environment specified.
echo
Please run the script with either 'development' or 'production' as an argument.
echo
.
echo
Usage:
%0
[development
^
|production]
goto
:
eof
)
::
Check if the provided environment is valid
if
/I
"
%1
"
==
"
development
"
(
set
"
APP_ENV
=
development
"
)
else
if
/I
"
%1
"
==
"
production
"
(
set
"
APP_ENV
=
production
"
)
else
(
echo
ERROR: Invalid environment specified:
"
%1
"
echo
Please use either 'development' or 'production'.
echo
.
echo
Usage:
%0
[development
^
|production]
goto
:
eof
)
echo
Starting server in
%APP_ENV%
mode...
::
Activate the virtual environment
call
.\env\Scripts\activate
::
Start the Uvicorn server
uvicorn app.main:app --reload
pause
endlocal
Back
|
FazBrowse Home
|
New Git URL