bitwalker / distillery

Simplify deployments in Elixir with OTP releases!
MIT License
2.96k stars 396 forks source link

start_erl.data expected in non-existing location which requires to specify RELEASE_MUTABLE_DIR location #695

Closed velimir closed 5 years ago

velimir commented 5 years ago

Steps to reproduce

  1. Build new release with RELEASE_READ_ONLY
  2. Deploy on read only file system.
  3. Start asforeground.
  4. See error: mkdir: cannot create directory ‘<YOUR_DIR_HERE>/var’: Read-only file system

Description of issue

670 introduced a change, that modified expected location of start_erl.data.

Once release is built directory has the following structure:

├── bin
├── erts-9.3.3.5
├── lib
└── releases
    ├── 0.1.0
    ├── RELEASES
    └── start_erl.data

After the #670 change, start_erl.data file is expected at var/start_erl.data:

https://github.com/bitwalker/distillery/commit/4ebfe9a6464d981b77008e083d258b4b720c6838#diff-bb0b28dac91fa3fff22ffea720be6334R10

https://github.com/bitwalker/distillery/blob/b7805d2147140f1517152cd88dcdb6911498d7cd/priv/templates/release_rc_exec.eex#L10-L11

velimir commented 5 years ago

closes as duplicate of #693