Skip to content

Commit

Permalink
Merge branch 'master' into pyup-pin-djangorestframework-3.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
olymk2 authored Feb 26, 2017
2 parents 9c1ca86 + 4f384d5 commit a3d033b
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ pipeline:
script:
- cd /var/www/stage/maidstone-hackspace-website
- git pull
- docker-compose down
- docker-compose up -d
- docker-compose -fstage.yml build
- docker-compose -fstage.yml down --remove-orphans
- docker-compose -fstage.yml up -d

publish-live:
# pull: True
Expand Down
4 changes: 2 additions & 2 deletions compose/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV PYTHONUNBUFFERED 1
# Requirements have to be pulled and installed here, otherwise caching won't work
COPY ./requirements /requirements

RUN pip install -r /requirements/production.txt \
RUN pip install --cache-dir ./cache/pip -r /requirements/production.txt \
&& groupadd -r django \
&& useradd -r -g django django

Expand All @@ -18,7 +18,7 @@ RUN mkdir -p /var/log/gunicorn/ \
&& chmod -R 770 /var/log/gunicorn/

COPY ./compose/django/live-gunicorn-mhackspace.sh /live-gunicorn-mhackspace.sh
COPY ./compose/django/live-gunicorn-mhackspace.sh /stage-gunicorn-mhackspace.sh
COPY ./compose/django/stage-gunicorn-mhackspace.sh /stage-gunicorn-mhackspace.sh
COPY ./compose/django/entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r//' /entrypoint.sh \
&& sed -i 's/\r//' /stage-gunicorn-mhackspace.sh \
Expand Down
2 changes: 1 addition & 1 deletion compose/django/Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV PYTHONUNBUFFERED 1

# Requirements have to be pulled and installed here, otherwise caching won't work
COPY ./requirements /requirements
RUN pip install -r /requirements/local.txt
RUN pip install --cache-dir ./cache/pip -r /requirements/local.txt

COPY ./compose/django/entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r//' /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion compose/django/stage-gunicorn-mhackspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
python /app/manage.py collectstatic --noinput
python /app/manage.py compilescss

/usr/local/bin/gunicorn config.wsgi -w 4 -b unix:/data/sockets/stage-gunicorn-mhackpace.sock --error-logfile /var/log/gunicorn/stage-gunicorn-mhackspace.log --chdir=/app
/usr/local/bin/gunicorn config.wsgi -w 4 -b unix:/data/sockets/stage-gunicorn-mhackspace.sock --error-logfile /var/log/gunicorn/stage-gunicorn-mhackspace.log --chdir=/app
2 changes: 1 addition & 1 deletion mhackspace/base/migrations/0003_auto_20170215_2146.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Migration(migrations.Migration):

operations = [
migrations.AlterField(
model_name='bannerimages',
model_name='bannerimage',
name='scaled_image',
field=stdimage.models.StdImageField(blank=True, null=True, upload_to=stdimage.utils.UploadToAutoSlugClassNameDir('title'), validators=[stdimage.validators.MinSizeValidator(1200, 300)]),
),
Expand Down
16 changes: 16 additions & 0 deletions mhackspace/base/migrations/0004_merge_20170226_0844.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-26 08:44
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('base', '0003_auto_20170215_2146'),
('base', '0003_auto_20170222_2055'),
]

operations = [
]
16 changes: 16 additions & 0 deletions mhackspace/users/migrations/0003_merge_20170226_0844.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-26 08:44
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('users', '0002_auto_20170222_2055'),
('users', '0002_user_public'),
]

operations = [
]
4 changes: 3 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@ braintree==3.35.0
django-autofixture==0.12.1

git+https://github.com/olymk2/scaffold.git

djangorestframework==3.5.4
django-filter
django-filter==1.0.1

2 changes: 1 addition & 1 deletion requirements/local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-r base.txt
coverage==4.3.1
django-coverage-plugin==1.5.0
Sphinx==1.5.1
Sphinx==1.5.3
django-extensions==1.7.7
Werkzeug==0.11.15
django-test-plus==1.0.16
Expand Down

0 comments on commit a3d033b

Please sign in to comment.