-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make compatible with heroku hosting. (#1389)
* initial herokuification * create custom_storage for manifested pipeline files Note: - @import lines removed from css files cause it was confusing the manifest mixin - missing image restored from best guess of what should have been there * credit where due! * change elasticsearch providers * fixup elasticsearch * move new media storage to it's own prefix * add migration view for old media files * update generate_pep_pages to consume results of python/peps#898 * fix admin inline for files/images on pages * support local and non-local image storage * make PEP_ARTIFACT_URL configurable via env var for heroku * herokuify: last fiew page/image fixups * Jobs rss feed Markup fields should be rendered
- Loading branch information
Showing
34 changed files
with
273 additions
and
175 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,2 @@ | ||
release: python manage.py migrate --noinput | ||
web: gunicorn pydotorg.wsgi |
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 @@ | ||
npm -g install yuglify |
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,13 @@ | ||
from django.conf import settings | ||
from django.contrib.staticfiles.storage import ManifestFilesMixin, StaticFilesStorage | ||
|
||
from pipeline.storage import PipelineMixin | ||
from storages.backends.s3boto3 import S3Boto3Storage | ||
|
||
|
||
class MediaStorage(S3Boto3Storage): | ||
location = settings.MEDIAFILES_LOCATION | ||
|
||
|
||
class PipelineManifestStorage(PipelineMixin, ManifestFilesMixin, StaticFilesStorage): | ||
pass |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
factory-boy==2.9.2 | ||
Faker==0.8.1 | ||
tblib==1.3.2 | ||
responses==0.10.5 | ||
|
||
# Extra stuff required for local dev | ||
|
||
|
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,4 @@ | ||
{ | ||
"name": "pythondotorg", | ||
"description": "Django App behind python.org" | ||
} |
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
Oops, something went wrong.