弹性堆- Rails - git部署和部署钩子

时间:2022-08-25 07:56:29

I want to setup Elastic Beanstalk for my existing rails application.

我想为我现有的rails应用程序设置弹性Beanstalk。

I was successful in doing the sample foo app.

我成功地做了样本foo应用程序。

These are the questions I have

这些是我的问题

  1. I need the deployment to happen from my git repository and not from my local path where I am deploying. How do I do that for the sample foo app.

    我需要在git存储库中部署,而不是在部署的本地路径中部署。对于样本foo应用程序我怎么做。

  2. I need to have a before_symlink deploy hook. How can I do this ?

    我需要一个before_symlink部署挂钩。我该怎么做呢?

1 个解决方案

#1


2  

I have addressed these issues.

我已经解决了这些问题。

  1. git aws.push takes all the commited things to git and then deploys it. Local changes are not impacted.

    git aws。push将所有推荐的东西都带到git中,然后进行部署。本地更改不会受到影响。

  2. Created a config file under .ebextensions

    在. ebextense创建一个配置文件

More here - http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html

这里,http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html

#1


2  

I have addressed these issues.

我已经解决了这些问题。

  1. git aws.push takes all the commited things to git and then deploys it. Local changes are not impacted.

    git aws。push将所有推荐的东西都带到git中,然后进行部署。本地更改不会受到影响。

  2. Created a config file under .ebextensions

    在. ebextense创建一个配置文件

More here - http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html

这里,http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html