While trying to deploy a Django application (with sqlite db) to Beanstalk I get the error:
"deterministic=True requires SQLite 3.8.3 or higher"
The solution seems to be to upgrade sqlite and set LD_LIBRARY_PATH. So I'm adding this to .ebextensions/app.config
:
option_settings:
aws:elasticbeanstalk:application:environment:
LD_LIBRARY_PATH: /usr/local/lib
commands:
01_upgrade_sqlite:
command: "cd ~ && wget https://www.sqlite.org/2020/sqlite-autoconf-3320100.tar.gz && tar xvfz sqlite-autoconf-3320100.tar.gz && cd sqlite-autoconf-3320100 && ./configure && make && make install"
But whatever I try, the environment variable LD_LIBRARY_PATH
is not set. I've check by logging into the environment (eb ssh
) and executing an env
command. I've also tried setting the environment variable in a command under both commands
and container_commands
. To no avail. Am I missing something?
EDIT: Some related discussions (non with a solution though):