Skip to content

Commit

Permalink
164047054-fix(Procfile): fixes migrations on heroku
Browse files Browse the repository at this point in the history
- remove script for  migrations on procfle
- Untracking migrations
- Adding setting files for different Environment
  • Loading branch information
Kibetchirchir committed Mar 15, 2019
1 parent 2c96846 commit 80e52d5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ before_script:
# run tests

script:
- python manage.py makemigrations authentication
- python manage.py migrate authentication
- python manage.py makemigrations profiles
- python manage.py migrate profiles
- python manage.py makemigrations article
- python manage.py migrate article
- coverage run --source=authors.apps manage.py test
- python manage.py makemigrations authentication --settings=authors.settings.test
- python manage.py migrate authentication --settings=authors.settings.test
- python manage.py makemigrations profiles --settings=authors.settings.test
- python manage.py migrate profiles --settings=authors.settings.test
- python manage.py makemigrations article --settings=authors.settings.test
- python manage.py migrate article --settings=authors.settings.test
- coverage run --source=authors.apps ./manage.py test --settings=authors.settings.test
- coverage report

after_success:
Expand Down
Empty file added authors/settings/__init__.py
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions authors/settings/local.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .base import *

DEBUG = True
3 changes: 3 additions & 0 deletions authors/settings/prod.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .base import *

DEBUG = False
3 changes: 3 additions & 0 deletions authors/settings/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .base import *

DEBUG = True
2 changes: 1 addition & 1 deletion authors/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "authors.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "authors.settings.prod")

application = get_wsgi_application()

0 comments on commit 80e52d5

Please sign in to comment.