【发布时间】:2014-02-22 03:06:36
【问题描述】:
我的最终目标是在使用 RDS 作为数据库的 AWS EC2 实例上为 Drupal 7 设置一个工作流。我希望能够在不影响我的 RDS 实例的情况下运行git aws.push。
设置:
- 我将 Drupal 7 克隆到本地计算机
- 我在 Web 控制台中设置了 Elastic Bean Stalk 应用程序、环境和 RDS 实例。
- 我在 Drupal 目录中运行了
eb init。这是我的 /.elasticbeanstalk/config:
应用程序名称=drupal
AwsCredentialFile=/path/to/.elasticbeanstalk/aws_credential_file
DevToolsEndpoint=git.elasticbeanstalk.[REGION].amazonaws.com
EnvironmentName=[drupal-env]
EnvironmentTier=WebServer::Standard::1.0
EnvironmentType=LoadBalanced
InstanceProfileName=aws-elasticbeanstalk-ec2-role
OptionSettingFile=/path/to.drupal/.elasticbeanstalk/optionsettings.[drupal-env]
RdsDeletionPolicy=快照
RdsEnabled=是
RdsSourceSnapshotName=test-snapshot-1 Region=[REGION]
ServiceEndpoint=https://elasticbeanstalk.[REGION].amazonaws.com
SolutionStack=64 位 Amazon Linux 运行 PHP 5.3
- 我
git aws.push并将文件上传到 Elastic Bean Stalk,一切似乎都正常。
问题
运行 git aws.push also 会重新启动我的 RDS 实例,导致数据丢失。我需要更改哪些内容才能在不重新启动/重新加载 RDS 实例的情况下运行 git aws.push?
【问题讨论】:
-
好吧,重启应该不会导致数据库丢失记录,否则有什么意义。并且独一无二的是它被重新启动了。您确定新数据库不是由启动脚本或 Drupal 中的启动脚本初始化数据库重新创建的吗?
标签: php deployment amazon-web-services amazon-elastic-beanstalk rds