Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

240
Visualizações
How to connect Prisma and migrate AWS ebs

After deploying successfully my nodejs app to AWS elastic beanstalk, I could open it on postman and check my routes, although it was all working correctly, from ebs logs, I could see a javascript error: Environment variable not found: DATABASE_URL.

so it seems that my app on AWS doesn't have a DATABASE_URL environment to load on my Prisma/schema.prisma file.

on the other hand, I discovered that AWS does provide database connection details through proccess.env as follows here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-nodejs.rds.html#nodejs-rds-create

but I have no clue how can I connect to my database on AWS when it's in production but with my .env DATABASE_URL when it's in development.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You would need to add your DATABASE_URL env variable in the Elastic Bean Stalk environment.

  1. In your environment select the Configuration option from the sidebar.

enter image description here

  1. Click on Software Category and select Edit from Actions menu.

enter image description here

  1. Add your environment variables (DATABASE_URL) in this case in the Environment Properties section and click on Apply.

Now your app should be able to access DATABASE_URL through process.env.DATABASE_URL variable.

enter image description here

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda