Closed fmooreRC closed 5 years ago
I just ran into this exact same issue on Windows 10 Professional, distillery,2.0.10,e9f1f1d3f4a89996a3e1a555872feed8a3a73e3d10b51886941382d29ca58f99,hexpm
.
To work around it I manually manipulated the _build/prod/rel/{app}/bin/{app}.bat
and in line 15, I changed if %ERRORLEVEL% eq 0 (
to if %ERRORLEVEL% equ 0 (
I hope this helps someone and maybe the issue can be fixed :)
Keep up the awesome work. Kudos.
@fdbeirao you could submit a pr to fix
Fixed via #541
Steps to reproduce
The build completes successfully, but when I try to run the application on the Windows server, it results in an error. I followed the walkthrough documentation here. I've tried using different versions of Distillery and ended up with different results.
Verbose Logs
Distillery 2.0.8
Distillery 2.0.10
Description of issue
What are the expected results? The app should start and run on the Windows server.
What version of Distillery? 2.0.8 and 2.0.10
What OS, Erlang/Elixir versions are you seeing this issue on?
Build is occurring on Mac OS X Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace] Elixir 1.6.5 (compiled with OTP 20)
Release is being deployed to Windows Server 2014: Erlang/OTP 21 [erts-10.0.1] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] Elixir 1.7.3 (compiled with Erlang/OTP 19)
rel/config.exs
, as it is often my first troubleshooting question, and you'll save us both time :) I've copied the compiled windows erts files to my Mac. Here's the relevant part of my rel/config.exs file:use Mix.Releases.Config,
environment :dev_server do set include_erts: "../erl10.0.1" set include_src: false set cookie: :redacted end
release :fergus do set version: current_version(:fergus) set applications: [ :runtime_tools ] end