text AWS Elastic Beanstalk

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text AWS Elastic Beanstalk相关的知识,希望对你有一定的参考价值。

#!/usr/bin/env bash
#
# Rails console script that can be run on AWS Elastic Beanstalk.
#
# Run this script from the app dir (/var/app/current) as root (sudo script/aws-console)
#

set -xe

EB_SCRIPT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script_dir)
EB_APP_DEPLOY_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir)
EB_APP_USER=$(/opt/elasticbeanstalk/bin/get-config container -k app_user)
EB_SUPPORT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k support_dir)
EB_PID_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_pid_dir)
EB_LOG_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_log_dir)

. $EB_SUPPORT_DIR/envvars

. $EB_SCRIPT_DIR/use-app-ruby.sh

cd $EB_APP_DEPLOY_DIR

su -s /bin/bash -c "bundle exec rails c" $EB_APP_USER

以上是关于text AWS Elastic Beanstalk的主要内容,如果未能解决你的问题,请参考以下文章

[AWS] Elastic Beanstalk

相爱相杀六年,Elastic终与AWS就商标问题达成共识

AWS Elastic Beanstalk 无法担任角色

AWS Elastic Beanstalk CLI 安装错误

共享 AWS Elastic Beanstalk 配置以将 git 部署到 AWS

如何使用 Elastic beanstalk 和 Dockerrun.aws.json 正确部署到 AWS?