I am running a simple rake task but it errors and exits without any reason.
fly ssh console --pty -C '/bin/bash'
Connecting to xxx... complete
root@xxx:/rails# bundle exec rake preferences:create_missing_preferences
Error: ssh shell: wait: remote command exited without exit status or exit signal
I don’t understand why this happens and I don’t know how to run the rake task. I’ve tried many things like fly ssh console --pty -C "bundle exec rake preferences:create_missing_preferences" but it doesn’t seem to work.
Anyone having this issue? What is the matter here? It’s frustrating to not be able to run such a simple command!
How does one connect to rails console? Also doesn’t seem to work! wtf?!!
Is this fly platform thing even works?
fly ssh console -C '/bin/bash'
WARN Allocating a pseudo-terminal since the command provided is a shell. This behavior will change in the future; please use --pty explicitly if this is what you want.
Connecting to xxx... complete
root@xxx:/rails# bin/rails console
Error: ssh shell: wait: remote command exited without exit status or exit signal