Psycopg2 on Amazon Elastic Beanstalk

前端 未结 4 1821
有刺的猬
有刺的猬 2020-12-17 08:02

I\'m trying upload my project (in python) that uses Psycopg2 for Amazon Elastic Beanstalk. I\'m doing this with a zip file containing my project and an requirements.txt fil

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 08:41

    Need postgresql-devel in your container. Create a file '.ebextensions/packages.config' with the contents:

    packages:
      yum:
        postgresql94-devel: []
    

    Replace 94 in postgresql94-devel with whatever version of postgres you need. For example, postgresql93-devel for postgres 9.3.

    http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html#customize-containers-format-packages

提交回复
热议问题