Script timed out before returning headers: wsgi.py on elastic beanstalk

后端 未结 6 1142
后悔当初
后悔当初 2020-12-14 07:45

I\'m trying to deploy a Django application to Elastic Beanstalk. When I visit the page it never loads. The logs say:

Script timed out before returning header         


        
6条回答
  •  不知归路
    2020-12-14 08:46

    It certainly does seem like an issue with WSGI and Apache like you mentioned. One thing to double check is the .ebextensions file in your source directory.

    There should be a config in there that specifies the WSGI information like the location of the application. You might also want to check your Django settings and run it locally with an Apache setup using WSGI.

    You've probably already read the official documentation for WSGI and Django, but this might catch some simplistic things that you might have missed: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html#create_deploy_Python_django_update

提交回复
热议问题