Skip to content

Commit cbf7ed2

Browse files
authored
fix: start service using erlsrv.exe in path with spaces (#12388)
There's a couple more places we need to quote the paths to various files in order to run the application using erlsrv.exe if the path contains spaces, like in "Program Files (x86)"
1 parent dcd5956 commit cbf7ed2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mix/lib/mix/tasks/release.init.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ defmodule Mix.Tasks.Release.Init do
454454
"!ERLSRV!" add "!RELEASE_NAME!_!RELEASE_NAME!" ^
455455
-!RELEASE_DISTRIBUTION! "!RELEASE_NODE!" ^
456456
-env RELEASE_ROOT="!RELEASE_ROOT!" -env RELEASE_NAME="!RELEASE_NAME!" -env RELEASE_VSN="!RELEASE_VSN!" -env RELEASE_MODE="!RELEASE_MODE!" -env RELEASE_COOKIE="!RELEASE_COOKIE!" -env RELEASE_NODE="!RELEASE_NODE!" -env RELEASE_VM_ARGS="!RELEASE_VM_ARGS!" -env RELEASE_TMP="!RELEASE_TMP!" -env RELEASE_SYS_CONFIG="!RELEASE_SYS_CONFIG!" ^
457-
-args "-setcookie !RELEASE_COOKIE! -config !RELEASE_SYS_CONFIG! <%= release_mode(@release, "!RELEASE_MODE!") %> -boot !REL_VSN_DIR!\start -boot_var RELEASE_LIB !RELEASE_ROOT!\lib -args_file !REL_VSN_DIR!\vm.args"
458-
457+
-args "-setcookie !RELEASE_COOKIE! -config ""!RELEASE_SYS_CONFIG!"" <%= release_mode(@release, "!RELEASE_MODE!") %> -boot ""!REL_VSN_DIR!\start"" -boot_var RELEASE_LIB ""!RELEASE_ROOT!\lib"" -args_file ""!REL_VSN_DIR!\vm.args\"""
459458
if %ERRORLEVEL% EQU 0 (
460459
echo Service installed but not started. From now on, it must be started and stopped by erlsrv:
461460
echo.

0 commit comments

Comments
 (0)