Skip to content

Commit

Permalink
collectstatic
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Aug 9, 2023
1 parent c281265 commit 1c2513d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile.cabotage
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ COPY prod-requirements.txt /code/
COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY . /code/
RUN DJANGO_SETTINGS_MODULE=pydotorg.settings.static python manage.py collectstatic --noinput
25 changes: 25 additions & 0 deletions pydotorg/settings/static.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import os

import dj_database_url
import raven
from decouple import Csv

from .base import *

DEBUG = TEMPLATE_DEBUG = False

HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch5_backend.Elasticsearch5SearchEngine',
'URL': 'http://127.0.0.1:9200',
'INDEX_NAME': 'haystack-null',
},
}

MIDDLEWARE = [
'whitenoise.middleware.WhiteNoiseMiddleware',
] + MIDDLEWARE

MEDIAFILES_LOCATION = 'media'
DEFAULT_FILE_STORAGE = 'custom_storages.storages.MediaStorage'
STATICFILES_STORAGE = 'custom_storages.storages.PipelineManifestStorage'

0 comments on commit 1c2513d

Please sign in to comment.