bitwalker / bitwalker/distillery

Can't start application on windows 10

Open
#599 15 comments 1 reaction 0 assignees View on GitHub
bug deployment:scripts os:windows
Dominant language
Elixir
Stars
3k
Forks
398
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

- set MIX_ENV=prod

- mix release

- Try to call _build\prod\rel\APPNAME\bin\YOURAPPNAME.bat foreground

```
{"init terminating in do_boot",{load_failed,[LIST OF MODULES]}}
init terminating in do_boot ({load_failed, ...
Crash dump is being written to: erl_crash.dump...done
```

### Description of issue

- What are the expected results?
The app should run.
- What version of Distillery?
version: "2.0.12"
- What OS, Erlang/Elixir versions are you seeing this issue on?
Erlang/OTP 21 [erts-10.1] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] Elixir 1.7.4 (compiled with Erlang/OTP 19)

- If possible, also provide your `rel/config.exs`, as it is often
my first troubleshooting question, and you'll save us both time :)
```
# 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: :"vw;sOrsaeMy$Ebtbj}>B?Id*!O`rwJGPc[sBGJr!2?ThESsT.3fKi(NlxnB8}&?t"
end

environment :prod do
set include_erts: true
set include_src: false
set cookie: :"0/booC|*Q*v_WW8>iHi:F$A9rBZY61Vi1s)CB:6aVUJ*Dtth^qD=B(!l@N>3fa[["
set vm_args: "rel/vm.args"
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 :myapp do
set version: current_version(:myapp)
set applications: [
:runtime_tools
]
end

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.