简体   繁体   English

如何使用完整路径从bash运行resque启动脚本

[英]how to run resque startup script from bash with full path

I am trying to run the following command: 我正在尝试运行以下命令:

/A/B/C/D/E/RAILS_ENV=staging rake deploy:resque

And the get the following error 并得到以下错误

-bash: /A/B/C/D/E/RAILS_ENV=staging: No such file or directory

But when i run the command directly from the folder it works nicely. 但是,当我直接从文件夹运行命令时,效果很好。 I don't quite understand how it is supposed to work 我不太了解应该如何运作

Thanks. 谢谢。

cd /A/B/C/D/E && RAILS_ENV=staging; rake deploy:resque

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM