On Windows I can not run any script that starts the release, I tried on Git Bash, built-in Powershell, and cmd. All of them fail with :
$ _build/prod/rel/engag/bin/engag.bat console
eq was unexpected at this time.
I noticied that this bat script searches for a powershell script under releases folder, running that script directly works.
What are the expected results?
Should be able to run a release on Windows
What version of Distillery?
2.0.10
What OS, Erlang/Elixir versions are you seeing this issue on?
OS: Windows 10 Build 17134.345
Elixir: 1.7.3
Erlang: 21.1
ERTS: 10.1
If possible, also provide your rel/config.exs, as it is often
my first troubleshooting question, and you'll save us both time :)
It's the default one, but pasted below
```
# Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: Mix.env()
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/config/distillery.html
# You may define one or more environments in this file,
# an environment's settings will override those of a release
# when building in that environment, this combination of release
# and environment configuration is called a profile
environment :dev do
# If you are running Phoenix, you should make sure that
# server: true is set and the code reloader is disabled,
# even in dev mode.
# It is recommended that you build with MIX_ENV=prod and pass
# the --env flag to Distillery explicitly if you want to use
# dev mode.
set dev_mode: true
set include_erts: false
set cookie: :"50{oz]wt15vsp|&myNR>L;qVb%4w.5}|Vl`sgKk$XP`)SAd9^aS3_BF3?6h4fhvU"
end
environment :prod do
set include_erts: true
set include_src: false
set cookie: :"{2nm_PXyOjt9`U9{Z:zo@YIH&^m3k17wCs1RM[%)~]E7_Uo6C4)>FE.@4q5@^!|G"
end
# You may define one or more releases in this file.
# If you have not set a default release, or selected one
# when running `mix release`, the first release in the file
# will be used by default
release :engag do
set version: current_version(:engag)
set applications: [
:runtime_tools
]
end
```
Is there documentation that says one thing, but Distillery does
another? If so, please link the doc here so it can be updated if
it's a documentation issue, or so that the fix can be based around
what's documented.
If this is a runtime configuration issue, please also provide your config file
(with any sensitive information stripped of course). This is almost
always necessary to understand why some configuration may not be working.
If you do not provide the above information and I need it to help troubleshoot, it may delay things significantly,
as I will have to ask you for all of these things anyway. Help me help you!
Steps to reproduce
Just a brief list of the steps required to produce the issue.
Not a code related so:
{:gun, "~> 1.3"}
{:distillery, "~> 2.0"}
Verbose Logs
Paste the output of the release command you ran with the
--verbose
flag below in the summary tags (this helps keep the issue easy to navigate):Description of issue
On Windows I can not run any script that starts the release, I tried on Git Bash, built-in Powershell, and cmd. All of them fail with :
I noticied that this bat script searches for a powershell script under releases folder, running that script directly works.
Should be able to run a release on Windows
2.0.10
What OS, Erlang/Elixir versions are you seeing this issue on?
If possible, also provide your
rel/config.exs
, as it is often my first troubleshooting question, and you'll save us both time :)It's the default one, but pasted below
If you do not provide the above information and I need it to help troubleshoot, it may delay things significantly, as I will have to ask you for all of these things anyway. Help me help you!