在启动期间在生产服务器上运行多个任务(Run multiple tasks on production server during boot up)

编辑

尝试安装上帝,但得到我的开发机器上The server is not available (or you do not have permissions to access it) 。

真的,只想在乘客启动时运行2个rake命令,有更简单的方法吗?


寻找帮助我在生产服务器上系统启动/重启期间组织和运行所有rake任务的东西。

我在linode.com上有一个非常香草的服务器。 Ubuntu 10.04,rails 3.0.8,ruby 1.9.2p180运行nginx和redis。

Nginx和redis会自动启动,但必须手动运行rake任务才能启动工作人员。

任何宝石或脚本可以帮助我这样做并将它们发送到后台?

EDIT

Tried install God, but get The server is not available (or you do not have permissions to access it) on my dev machine.

really, only want to run 2 rake commands on passenger startup, is there an easier way?


Looking for something to help me get all my rake tasks organized and run during system boot / reboot on production server.

I have a very vanilla server on linode.com. Ubuntu 10.04, rails 3.0.8, ruby 1.9.2p180 running nginx and redis.

Nginx and redis start automatically, but have to run rake tasks manually to start workers.

Any gems or scripts that can help me do this and send them to the background?

最满意答案

对于上帝问题,检查没有

w.uid = "xxx"

在您的配置文件中,xxx是不存在的用户。

For the God issue, check that there is no

w.uid = "xxx"

in your config file where xxx is a nonexistent user.

更多推荐