python - Django AWS Eslastic Beanktalk not deploying - Internal Server Error -


I am following this tutorial:

I am at step 6. I already have my own ADS Elastic Beanstyle Python app and now I want to link it to my own Dyango application.

This is my directory:

  ~ / document / myapp myapp manage.py options.txt .ebextensions .leasticbeanstalk .git .gitignore  

MyEp.config is inside my .ebextensions:

  container_commands: 01_syncdb: command: leader_only "--noinput django-admin.py syncdb": True option_settings: - Namespace: AWS: Elasticbeanstalk: container: python option_name: wsgipath value: myapp / wsgi.py - option_name: DJANGO_SETTINGS_MODULE value: myapp.settings - option_name: AWS_SECRET_KEY value: myUsersSecretKey - option_name: AWS_ACCESS_KEY_ID value: myUsersAcessKey  

inside

  ~ / documents / myapp / myapp  

is my settings_You, view.py etc I created the database in my settings: / P>

  database = {'default': {'ENGINE': 'django.db.backends.mysql', 'NAME': os.environ ['RDS_DB_NAME' ], 'USER': OS '[RDS_HOSTNAME'], 'Port': os.environ ['RDS_PORT'],}}  / Code>  

As he said in the tutorial. I did it

  git add Git commit -m "eb configuration" git aws.push  

said that the environment update successfully started After waiting for, I went to the URL and it is still AWS elastic Beanlest Python success page and this is not my demo application. Any ideas why?

EDIT: I then tried to follow this tutorial: (stop at 7:44)

and changed my configured file to:

< Pre> container_commands: 01_syncdb: command: leader_only "--noinput django-admin.py syncdb": true option_settings: - namespace: AWS: elasticbeanstalk: container: python OPTION_NAME: WSGIPath value: MyApp / wsgi.py - OPTION_NAME : DJANGO_SETTINGS_MODULE Value: MyApp .settings - namespace: aws: autoscaling: launchconfiguration option_name: EC2KeyName Value: myKeyPairName

And now when I refresh the page after the situation is ready An Internal Server Error says: P>

  The server encountered an internal error or misconfiguration and was unable to fulfill your request. Please contact administrator, contact local localhost and give them time and time Inform about the error, and whatever you have done, it may be that the error has been used. More information about this error may be available in the server error log.  

Edit 2:

Should my wsgi.py file look in a certain way to deal with AWS elastic beanstock? I have left the wsgi.py file how it was when it was created for the first time because the tutorial had also done this: it is my wsgi.py:

  import OS os.environ.setdefault ( "DJANGO_SETTINGS_MODULE", "ayflare.settings") django.core.wsgi import get_wsgi_application application = get_wsgi_application ()  

I think there are some things here,

  • instead of using" django-admin.py "instead of" python manage.py syncdb --noinput "Can try to use. I'm facing some problems until I switch to "Python manage.py".

  • One more thing that can be fair is to see that DEBUG is enabled in your DNS settings file. You can get more detailed error messages about this issue.

  • Occasionally, if you float deployed then EB, after reconstruction of the environment, can help to resolve the problem. Your code / config files will allow you to access it on the ADS Management Console In elastic beanstock page.

  • Your first myapp.config file looks correct

If you received from a YouTube video The update does not look right.

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -