Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
116 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## deployment | ||
|
||
+-- miniverse | ||
+-- settings | ||
+-- heroku_dev.py | ||
+-- wsgi.py | ||
+-- urls_heroku_dev.py (not yet created) | ||
+-- Procfile | ||
|
||
# checklist | ||
|
||
- [ ] python runtime | ||
- do we want to go live with 3.x? | ||
- [ ] static files | ||
- [ ] database | ||
- [ ] database routing | ||
- [ ] secret key | ||
|
||
|
||
# config vars | ||
|
||
- https://devcenter.heroku.com/articles/config-vars#add-ons-and-config-vars | ||
|
||
## Set python version | ||
|
||
- reference: https://devcenter.heroku.com/articles/python-support#supported-python-runtimes | ||
|
||
- location: ```+-- runtime.txt``` | ||
|
||
``` | ||
cat runtime.txt | ||
python-2.7.11 | ||
``` | ||
|
||
|
||
## set django vars | ||
|
||
- secret key | ||
- create a key: https://gist.github.com/joshsee/8c495c2da9b423d42e8d | ||
- set the key: ```heroku config:set SECRET_KEY=[key from above]``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: gunicorn miniverse.wsgi --log-file - --limit-request-line 8190 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
from django.test import TestCase | ||
from dv_apps.metrics.stats_util_dataverses import StatsMakerDataverses | ||
|
||
# Create your tests here. | ||
class DvObjectsTestCase(TestCase): | ||
|
||
#fixtures = ['test_2016_0812.json'] | ||
|
||
def setUp(self): | ||
pass | ||
|
||
|
||
def test_01_todo(self): | ||
"""Test to see if db created""" | ||
|
||
stats_maker = StatsMakerDataverses() | ||
stats_result = stats_maker.get_dataverse_counts_by_month() | ||
|
||
print 'stats_result.result_data', stats_result.result_data | ||
|
||
self.assertEqual(stats_result.has_error(), False) | ||
self.assertEqual(stats_result.result_data, []) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-r requirements/heroku.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
-r base.txt | ||
|
||
gunicorn==19.6.0 | ||
dj-database-url==0.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python-2.7.11 |
Binary file not shown.