3

Using Amazons OpsWorks

I'm able to get a PHP App Server to get initialised, it downloads our project from git and sets it up, I've got a custom recipe being run on Setup that works and downloads composer, but this gets run before the git repository is downloaded, so too early to try and change permissions.

I've currently got a recipe in Deploy that changes permissions on some files that were created as part of downloading our git project, however this recipe doesn't seem to get fired when setting up a new instance, I can only run it by manually deploying an app.

How can I have a recipe run after the git project has been downloaded by chef, when an instance is created (so when the site auto scales and a new instance is fired up, the recipe is run to set file permissions correctly)

4

3 回答 3

2

由于 opsworks 目前处于测试阶段,因此仍然存在一些问题,因此部署存在问题。显然,在初始化新的 php 实例时不会运行自定义部署(不确定其他的,因为我只使用了 php)

于 2013-04-24T05:24:36.570 回答
1

我们已经解决了这个问题。自定义部署配方现在在实例启动时运行。

于 2013-05-15T00:39:12.843 回答
1

今天在 OpsWorks 中的“设置”事件意味着:OpsWorks 设置厨师食谱,客户设置厨师食谱,OpsWorks 部署厨师食谱

我们计划对此进行更改,以便“设置”事件意味着:OpsWorks 设置厨师食谱、客户设置厨师食谱、OpsWorks 部署厨师食谱、客户部署厨师食谱

于 2013-04-19T23:09:51.400 回答