diff --git a/.ebextensions/rails.config b/.ebextensions/rails.config deleted file mode 100644 index 69b9db18..00000000 --- a/.ebextensions/rails.config +++ /dev/null @@ -1,23 +0,0 @@ -files: - "/opt/elasticbeanstalk/hooks/appdeploy/post/01_rails_db_setup.sh": - mode: "000755" - owner: root - group: root - content: | - #!/usr/bin/env bash - - . $(/opt/elasticbeanstalk/bin/get-config container -k support_dir)/envvars - . $(/opt/elasticbeanstalk/bin/get-config container -k script_dir)/use-app-ruby.sh - - cd $(/opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir) - - if [ "$EB_ENVIRONMENT" == "move-mil-prod" ] - then - # In production, ensure that DB migrations run because this might be a new version of the app that requires it, but do not blow the DB away and re-seed - su -s /bin/bash -c 'DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bin/rails db:migrate' $(/opt/elasticbeanstalk/bin/get-config container -k app_user) - else - # In all other environments, for simplicity and ease of development, just blow the DB away and re-seed - su -s /bin/bash -c 'DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bin/rails db:setup' $(/opt/elasticbeanstalk/bin/get-config container -k app_user) - fi - - rm -- "$0"