Kaydet (Commit) 1e9038cb authored tarafından Batuhan Taşkaya's avatar Batuhan Taşkaya

supervisord, start script, whitenoise

üst 3bed680b
...@@ -11,6 +11,11 @@ django-bootstrap4 = "*" ...@@ -11,6 +11,11 @@ django-bootstrap4 = "*"
django-ace = "*" django-ace = "*"
pillow = "*" pillow = "*"
django-simple-captcha = "*" django-simple-captcha = "*"
gunicorn = "*"
whitenoise = "*"
[scripts]
start = "gunicorn aspava.wsgi:application --bind localhost:8000"
[requires] [requires]
python_version = "3.7" python_version = "3.7"
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "f2810748cc236f3c3948eb5129dc8b1908cf686bdc3b59e58d69c59b3ec20d9f" "sha256": "6041bbbd273ef62c48be6092d7016c1b1d135a044f3a5f68274cd3dd9e285370"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
}, },
"django-ranged-response": { "django-ranged-response": {
"hashes": [ "hashes": [
"sha256:ed3f491b0a320ed528b6826be962c873f57a7563ca944e27abab7e3c11b4fa95",
"sha256:f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985" "sha256:f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985"
], ],
"version": "==0.2.0" "version": "==0.2.0"
...@@ -53,6 +52,14 @@ ...@@ -53,6 +52,14 @@
"index": "pypi", "index": "pypi",
"version": "==0.5.11" "version": "==0.5.11"
}, },
"gunicorn": {
"hashes": [
"sha256:aa8e0b40b4157b36a5df5e599f45c9c76d6af43845ba3b3b0efe2c70473c2471",
"sha256:fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3"
],
"index": "pypi",
"version": "==19.9.0"
},
"pillow": { "pillow": {
"hashes": [ "hashes": [
"sha256:15c056bfa284c30a7f265a41ac4cbbc93bdbfc0dfe0613b9cb8a8581b51a9e55", "sha256:15c056bfa284c30a7f265a41ac4cbbc93bdbfc0dfe0613b9cb8a8581b51a9e55",
...@@ -105,6 +112,14 @@ ...@@ -105,6 +112,14 @@
"sha256:7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873" "sha256:7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873"
], ],
"version": "==0.3.0" "version": "==0.3.0"
},
"whitenoise": {
"hashes": [
"sha256:118ab3e5f815d380171b100b05b76de2a07612f422368a201a9ffdeefb2251c1",
"sha256:42133ddd5229eeb6a0c9899496bdbe56c292394bf8666da77deeb27454c0456a"
],
"index": "pypi",
"version": "==4.1.2"
} }
}, },
"develop": {} "develop": {}
......
...@@ -44,6 +44,7 @@ INSTALLED_APPS = [ ...@@ -44,6 +44,7 @@ INSTALLED_APPS = [
MIDDLEWARE = [ MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
......
[program:gunicorn]
directory=/srv/aspava/aspava
command=/usr/local/bin/pipenv run start
autostart=true
autorestart=true
stderr_logfile=/var/log/gunicorn/gunicorn.out.log
stdout_logfile=/var/log/gunicorn/gunicorn.err.log
user=root
group=www-data
environment=LANG=en_US.UTF-8,LC_ALL=en_US.UTF-8
[group:guni]
programs:gunicorn
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment