Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 GIT 和 heroku 的新手。
$ sh target\bin\worker.bat sh: targetbinworker.bat: No such file or directory.
我在哪里犯错?
Unix shell 不理解 Windows 批处理文件或反斜杠作为路径分隔符。尝试打开 Windows 命令提示符并target\bin\worker.bat在其中运行。
target\bin\worker.bat
看起来您在 linux 控制台上使用反斜杠。尝试
sh 目标/bin/worker.bat
(这可能也不起作用,因为 .bat 是 Windows 扩展;没有类似 target/bin/worker.sh 的东西吗?)