EC2 AWS debugging, How to?
So I've been trying to set up a pipeline with Github, Elastic Beanstalk and Django. It looks like I've managed to run the migrations commands and fix all the bugs prior to this stage. As I was getting error messages in the full logs. I'm now where the pipeline run successfully and commands have been executed and everything looks fine, beside my server not running and I do not get any clear error messages beside.
ERROR : Following services are not running: web.
This commands have been executed :
#!/bin/sh
source /var/app/venv/staging-LQM1lest/bin/activate
python /var/app/current/manage.py migrate
python /var/app/current/manage.py collectstatic --noinput
My config :
packages:
yum:
amazon-linux-extras: []
git: []
commands:
01_postgres_activate:
command: sudo amazon-linux-extras enable postgresql11
02_postgres_install:
command: amazon-linux-extras install postgresql11
More config :
option_settings:
"aws:elasticbeanstalk:application:environment":
DJANGO_SETTINGS_MODULE: project.settings
"PYTHONPATH": "/opt/python/current/:$PYTHONPATH"
"aws:elasticbeanstalk:container:python":
WSGIPath: project.wsgi:application
NumProcesses: 3
NumThreads: 20
"aws:elasticbeanstalk:environment:proxy:staticfiles":
/html: statichtml
/static-files: static-files
/media: media-files
container_commands:
10_deploy_hook_permissions:
command: |
sudo find backend/.platform/ -type f -iname "*.sh" -exec chmod -R 755 {} \;
sudo find /var/app/staging/backend/.platform/ -type f -iname "*.sh" -exec chmod -R 755 {} \;
Now my question is, is that an issue with opening ports ? I've also tried to run python manage.py runserver here but nothing happens
NOTE : when running EB deploy from my terminal everything works fine