Deploy Pyramid Application On Elastic Beanstalk
Does anyone have experience installing a Pyramid application via Elastic Beanstalk? My application deploys but I cannot configure the application's application.py (or pyramid.wsgi)
Solution 1:
Thanks to a friend over on the "pylons-discuss" Google groups forum I now have a solution that works.
You will need to add a config command for your environment that runs the setup.py develop
command. To do this, you will need to add a file to your .ebextensions folder named packages.config (or use whatever naming scheme you like) with the following:
container_commands:01_setup:command:"/opt/python/run/venv/bin/python setup.py develop"
Alternatively, you can (and probably should) run:
container_commands:01_setup:command:"/opt/python/run/venv/bin/pip install -e ."
(Although I would like someone to verify this, just to be sure.)
Next, run the eb deploy
command. Elastic Beanstalk should now recognize that your package is installed. Cheers!
To understand the difference between the previous two solutions see:
Post a Comment for "Deploy Pyramid Application On Elastic Beanstalk"