Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ying Chen committed Mar 15, 2024
1 parent 1d5bd8f commit 9408bc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 1 addition & 8 deletions scripts/installer/windows/scripts/pfs.bat
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
@REM @echo off
@REM setlocal
@REM
@REM set MAIN_EXE=%~dp0.\pfcli.exe
@REM "%MAIN_EXE%" pfs %*

@echo off
setlocal

set MAIN_EXE=%~dp0.\pfcli.exe

REM Check if the first argument is 'start'
if "%~1"=="start" (
cscript start_pfs.vbs """%MAIN_EXE%"" pfs %*"
cscript %~dp0.\start_pfs.vbs """%MAIN_EXE%"" pfs %*"
)
) else (
"%MAIN_EXE%" pfs %*
Expand Down
2 changes: 1 addition & 1 deletion scripts/installer/windows/scripts/start_pfs.vbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DIM objshell
set objshell = wscript.createobject("wscript.shell")
cmd = """%MAIN_EXE%"" pfs %*"
cmd = WScript.Arguments(0)
iReturn = objshell.run(cmd, 0, true)
4 changes: 3 additions & 1 deletion src/promptflow/promptflow/_sdk/_service/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def validate_port(port, force_start):
app.logger.setLevel(logging.DEBUG)
else:
app.logger.setLevel(logging.INFO)
app.logger.info(f"Start Prompt Flow Service on {port}, version: {get_promptflow_sdk_version()}")
message = f"Start Prompt Flow Service on {port}, version: {get_promptflow_sdk_version()}"
app.logger.info(message)
print(f"{message}. You're feel free to input CTRL+C or close the terminal to exit.")
waitress.serve(app, host="127.0.0.1", port=port, threads=PF_SERVICE_WORKER_NUM)
else:
# Start a pfs process using detach mode. It will start a new process and create a new app. So we use environment
Expand Down

0 comments on commit 9408bc6

Please sign in to comment.