Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f483cf978c | ||
|
|
0e12e3a531 | ||
|
|
67bea9a2a7 |
@@ -276,6 +276,6 @@ def _devmode_respond(request: Request, name=""):
|
||||
return JSONResponse(
|
||||
status_code=409,
|
||||
content={
|
||||
"detail": "Frontend assets served by Vite in debug mode. You are on backend, connect to frontend instead."
|
||||
"detail": "[devmode] Not serving frontend files here. Should you connect to Vite instead?"
|
||||
},
|
||||
)
|
||||
|
||||
+12
-1
@@ -50,7 +50,18 @@ def ruff_format_content(content: str, target_path: Path) -> str:
|
||||
temp_file.write_text(content, "UTF-8", newline="\n")
|
||||
# Sort imports first
|
||||
subprocess.run(
|
||||
["uv", "run", "--with", "ruff", "ruff", "check", "--select", "I", "--fix", str(temp_file)],
|
||||
[
|
||||
"uv",
|
||||
"run",
|
||||
"--with",
|
||||
"ruff",
|
||||
"ruff",
|
||||
"check",
|
||||
"--select",
|
||||
"I",
|
||||
"--fix",
|
||||
str(temp_file),
|
||||
],
|
||||
cwd=target_path.parent,
|
||||
capture_output=True,
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import os
|
||||
from fastapi_vue import server
|
||||
|
||||
DEFAULT_PORT = TEMPLATE_DEFAULT_PORT
|
||||
DEVMODE = bool(os.getenv("ENVPREFIX_DEV") == "1")
|
||||
DEVMODE = os.getenv("ENVPREFIX_DEV") == "1"
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
@@ -56,7 +56,8 @@ def main():
|
||||
epilog=HELP_EPILOG,
|
||||
)
|
||||
parser.add_argument(
|
||||
"-l", "--listen",
|
||||
"-l",
|
||||
"--listen",
|
||||
metavar="host:port",
|
||||
help=f"Vite (default: localhost:{DEFAULT_VITE_PORT})",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user