aws.push命令不运行的.config命令或container_commands [英] aws.push command not running .config commands or container_commands

查看:189
本文介绍了aws.push命令不运行的.config命令或container_commands的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的设置与负载平衡的应用程序,并要运行的cron设置某些命令(例如,使用每当宝石)。然而,没有我的命令似乎得到运行在远程服务器上。

I have a simple setup with a load-balanced application and want to run some commands for cron setups (for instance, using the whenever gem). However, none of my commands seem to get run on the remote server.

# .elasticbeanstalk/Production.config
container_commands:
  20_update_crontab:
    command: whenever --update-crontab app
    leader_only: true

偶试过:

# .elasticbeanstalk/Production.config
commands:
  update_crontab:
    command: whenever --update-crontab app

有什么我失踪?这些应该执行混帐aws.push 是否正确?

当我检查日志,我真的不得到任何信息,说是试图运行:

When I check the logs, I don't really get any information saying it was trying to run:

$ eb logs | grep whenever
Using whenever (0.9.2)

此页面上的描述是pretty的不错,只是想不通为什么它没有运行。

The descriptions on this page are pretty good, just can't figure out why it isn't running.

http://www.infoq.com/news/十一分之二千○十二/弹性魔豆 - 配置 - 文件

推荐答案

弹性魔豆的配置文件应放置在 .ebextenstions / 。它看起来像你在 .elasticbeanstalk /

Elastic Beanstalk configuration files should be placed in .ebextenstions/. It looks like yours are in .elasticbeanstalk/

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers.html

创建具有扩展的.config(例如,myapp.config)的配置文件,并将其放置在一个.ebextensions源包的顶级目录。

Create a configuration file with the extension .config (e.g., myapp.config) and place it in an .ebextensions top-level directory of your source bundle.

这篇关于aws.push命令不运行的.config命令或container_commands的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆