Skip to content

Instantly share code, notes, and snippets.

@thadeu
Created August 15, 2019 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thadeu/41a8f4e17742e0f99f83ac19c16c42bd to your computer and use it in GitHub Desktop.
Save thadeu/41a8f4e17742e0f99f83ac19c16c42bd to your computer and use it in GitHub Desktop.
Elastic Beanstalk Rails

Iniciar um configuracao EB

eb init --profile thadeu

Criar um Environment pra aplicação

eb create fielservicos-production --profile thadeu

Criar um SECRET_KEY_BASE

eb setenv SECRET_KEY_BASE=(rails secret)

Criar um RDS para aplicação e colocar as variaveis no database.yml

Deploy aplicação

eb deploy

Alterar ruby version

aws elasticbeanstalk update-environment --solution-stack-name "64bit Amazon Linux 2018.03 v2.10.1 running Ruby 2.5 (Puma)" --environment-name "fielservicos-prod" --region "us-east-1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment