KangDo
KangDo

Reputation: 79

I can't start gunicorn on AWS EC2

I was going to update to using sqlite database into the mysql database on my django project. after replaced settings.py like bellow:

` DATABASES = {

   'default': {
       'ENGINE': 'django.db.backends.mysql',
       'NAME': '*',
       'USER': '*',
       'PASSWORD': '*',
       'HOST': 'localhost',
       'PORT': '***',

   }

}

then I excuted this command systemctl restart gunicorn

here is the screenshot:

EC2 screebshot

Upvotes: 1

Views: 397

Answers (1)

Javier Gallego
Javier Gallego

Reputation: 184

You need to check Nginx configuration on your OS. The error says that the configuration was incorrect.

Upvotes: 1

Related Questions