Psycopg2 on Amazon Elastic Beanstalk

前端 未结 4 1822
有刺的猬
有刺的猬 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:30

    I struggled for a while with and couldn't get the above solution to work. I tried many other solutions as well, but it ended up being a lack of fundamental understanding on my part.

    The config files are read alphabetically. So if you have more than one, which you likely do, make sure that 'packages.config' comes alphabetically before your .config with container_commands.

    Otherwise 'syncdb' for example will be called before your packages have been installed.

提交回复
热议问题