So I'm trying to do something that involves running sbt
over an SSH command, and this is what I'm trying:
ssh my_username@<server ip> "cd <project folder>; sbt 'run-main Foo' "
When I do that however, I get an error message: bash: sbt: command not found
Then I go SSH into the server myself, cd
to the project folder, and run sbt 'run-main Foo'
and everything works nicely. I have checked to make sure sbt
is on the $PATH
variable on the remote server via ssh my_username@<server ip> "echo $PATH"
and it shows the correct value.
I feel like this is a simple fix, but cannot figure it out... help? Thanks! -kstruct