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.
我正在使用延迟作业,因为我在后台运行了一些长时间运行的进程。烦人的部分是我每次启动应用程序之前都需要运行“rake jobs:work”。有什么方法可以让我的 Rails 应用程序知道我希望它在每次重新启动服务器时启动?或刷新我的主页?
这是在你的本地机器上吗?如果是这样,您可以设置一个可以运行的别名,当您使用该别名时该别名将运行“rake jobs:work”。例如:
alias startserver='rake jobs:work & rails s'