Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/262.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP-如何在不重新启动rds的情况下将git aws.push转换为elastic beanstalk?_Php_Deployment_Amazon Web Services_Amazon Elastic Beanstalk_Rds - Fatal编程技术网

PHP-如何在不重新启动rds的情况下将git aws.push转换为elastic beanstalk?

PHP-如何在不重新启动rds的情况下将git aws.push转换为elastic beanstalk?,php,deployment,amazon-web-services,amazon-elastic-beanstalk,rds,Php,Deployment,Amazon Web Services,Amazon Elastic Beanstalk,Rds,我的最终目标是在AWS EC2实例上为Drupal 7设置一个工作流,该实例使用RDS作为数据库。我希望能够在不影响我的RDS实例的情况下运行git aws.push 设置: 我将Drupal7克隆到本地机器上 我在web控制台中设置了一个弹性豆茎应用程序、环境和RDS实例 我在Drupal目录中运行了ebinit。这是我的/.elasticbeanstalk/config: ApplicationName=drupal AwsCredentialFile=/path/to/.elasticbe

我的最终目标是在AWS EC2实例上为Drupal 7设置一个工作流,该实例使用RDS作为数据库。我希望能够在不影响我的RDS实例的情况下运行
git aws.push

设置:
  • 我将Drupal7克隆到本地机器上
  • 我在web控制台中设置了一个弹性豆茎应用程序、环境和RDS实例
  • 我在Drupal目录中运行了
    ebinit
    。这是我的/.elasticbeanstalk/config:
  • ApplicationName=drupal

    AwsCredentialFile=/path/to/.elasticbeanstalk/aws_凭证_文件

    DevToolsEndpoint=git.elasticbeanstalk.[REGION].amazonaws.com

    环境名称=[drupal环境]

    EnvironmentTier=WebServer::Standard::1.0

    环境类型=负载平衡

    InstanceProfileName=aws-elasticbeanstalk-ec2-role

    OptionSettingFile=/path/to.drupal/.elasticbeanstalk/optionsettings。[drupal环境]

    RDSDelectionPolicy=快照

    RdsEnabled=是

    RdsSourceSnapshotName=test-snapshot-1 Region=[Region]

    服务端点=https://elasticbeanstalk.[地区].amazonaws.com

    SolutionStack=64位运行PHP 5.3的Amazon Linux

  • I
    git aws.push
    文件被上传到Elastic Bean Stable,一切似乎都正常
  • 问题
    运行git aws.push也会重新启动我的RDS实例,导致数据丢失。我需要做哪些更改才能运行
    git aws.push
    ,而无需重新启动/重新加载我的RDS实例?

    当您运行>eb init时,在其中一个步骤中,它会询问您是否要创建一个新的RDS实例,您应该回答否。

    好的,重新启动不应该导致数据库丢失记录,否则有什么意义。它被重新启动了。您确定新数据库不是由启动脚本或Drupal中的启动脚本初始化数据库而重新创建的吗?