You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But after deploying a release I don't see the new commands – but I DO still see the seed command:
$ bin/my_project
USAGE
my_project <task> [options] [args..]
COMMANDS
start Start my_project as a daemon
start_boot <file> Start my_project as a daemon, but supply a custom .boot file
foreground Start my_project in the foreground
...
seed (custom command)
And when I try to run one of the new 'something' commands:
ubuntu@ip-172-31-64-81:~$ web/partially/bin/partially enable_maintenance_mode
'enable_maintenance_mode' is not a valid command
...
I believe I saw elsewhere that Distillery explicitly requires Bash and not any Bourne-compatible shell. I picked-up the habit of naming my own Bash shell scripts with a .bash extension from my favorite Bash guide author:
Also, please refrain from giving scripts a .sh extension. It serves no purpose, and it's completely misleading (since it's going to be a bash script, not an sh script).
[Based on the above, I figured .bash was clearer than no extension, and more accurate/precise than .sh.]
The current docs include examples of shell scripts for custom commands with no extension in the script file names too – those don't seem like they would work either.
But this is a very minor issue, easily worked-around, and I think, for my own project, just calling the relevant code via the builtin eval or rpc commands is just as good (and a little better in not requiring any extra config or an extra shell script).
Verbose Logs
[Please let me know if these would be useful.]
Description of issue
What are the expected results?
All of the custom commands should be listed, maybe regardless of the extension (if any) of the corresponding shell scripts.
What version of Distillery?
2.1.1
What OS, Erlang/Elixir versions are you seeing this issue on?
Steps to reproduce
In my project's
rel/config.exs
file, I just added two new ('something') custom commands:But after deploying a release I don't see the new commands – but I DO still see the
seed
command:And when I try to run one of the new 'something' commands:
This code in
priv/libexec/commands/help.sh
(and similar code elsewhere that I am imagining exists) seems like it might be why the new commands aren't listed:I believe I saw elsewhere that Distillery explicitly requires Bash and not any Bourne-compatible shell. I picked-up the habit of naming my own Bash shell scripts with a
.bash
extension from my favorite Bash guide author:[Based on the above, I figured
.bash
was clearer than no extension, and more accurate/precise than.sh
.]The current docs include examples of shell scripts for custom commands with no extension in the script file names too – those don't seem like they would work either.
But this is a very minor issue, easily worked-around, and I think, for my own project, just calling the relevant code via the builtin
eval
orrpc
commands is just as good (and a little better in not requiring any extra config or an extra shell script).Verbose Logs
[Please let me know if these would be useful.]
Description of issue
What are the expected results?
All of the custom commands should be listed, maybe regardless of the extension (if any) of the corresponding shell scripts.
What version of Distillery?
2.1.1
What OS, Erlang/Elixir versions are you seeing this issue on?
Elixir is version
1.12.3
and Erlang/OTP is24.0.6
.The text was updated successfully, but these errors were encountered: