Skip to content

Commit f79bb5c

Browse files
committed
More updates to deployment process
1 parent 99266c1 commit f79bb5c

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

conf_templates/gunicorn.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ exec gunicorn --pythonpath "%(DEPLOY_DIR)s" \
2222
--group "%(GROUP)s" \
2323
--log-level "info" \
2424
--log-file "$LOG_FILE" \
25-
steepshot_io.wsgi:application
25+
steepshot_io.config.wsgi:application

conf_templates/nginx.conf.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ server {
1010
{%-if ENV == "VAGRANT" %}
1111
{# Do not use certificates on vagrant installation #}
1212
{%- else %}
13-
ssl_certificate /etc/ssl/certs/www.steepshot.io.certchain.crt;
14-
ssl_certificate_key /etc/ssl/private/steepshot.io.key;
13+
ssl_certificate /etc/letsencrypt/live/steepshot.io/fullchain.pem;
14+
ssl_certificate_key /etc/letsencrypt/live/steepshot.io/privkey.pem;
1515
{%- endif %}
1616

1717
access_log {{ DEPLOY_DIR }}/logs/nginx-access.log;

requirements.txt

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dj-database-url==0.3.0
44
Django==1.11.1
55
django-redis==4.6.0
66
Fabric3==1.12.post1
7+
gunicorn==19.3.0
78
Jinja2==2.9.6
89
kombu==3.0.37
910
packaging==16.8
@@ -13,3 +14,8 @@ pyparsing==2.2.0
1314
pytz==2017.2
1415
redis==2.10.5
1516
six==1.10.0
17+
18+
# We use aiohttp gunicorn workers
19+
asyncio==3.4.3
20+
aiohttp==1.3.5
21+
aiohttp-wsgi==0.6.6

steepshot_io/config/prod_settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
'django.contrib.messages',
6767
'django.contrib.staticfiles',
6868

69-
'core',
69+
'steepshot_io.core',
7070
]
7171

7272
MIDDLEWARE = [

steepshot_io/deploy_settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
GUNI_TIMEOUT = 60
7474
GUNI_GRACEFUL_TIMEOUT = 180
7575

76-
SETTINGS_MODULE = 'config.prod_settings'
77-
GOLOS_SETTINGS_MODULE = 'config.golos_prod_settings'
76+
SETTINGS_MODULE = 'steepshot_io.config.prod_settings'
77+
GOLOS_SETTINGS_MODULE = 'steepshot_io.config.golos_prod_settings'
7878

7979

8080
ENVIRONMENTS = {

0 commit comments

Comments
 (0)