don't serve static files
This commit is contained in:
parent
cbab8c33a8
commit
d90f0f3218
|
@ -120,8 +120,5 @@ USE_TZ = False
|
|||
# https://docs.djangoproject.com/en/2.1/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, '../../frontend/build/static')
|
||||
]
|
||||
STATICFILES_DIRS = []
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||
|
||||
|
|
|
@ -34,5 +34,4 @@ router.register(r'graph/edges', views.EdgeView, base_name='edge')
|
|||
urlpatterns = [
|
||||
path('api/v1/', include(router.urls)),
|
||||
path('silk/', include('silk.urls', namespace='silk')),
|
||||
path('', TemplateView.as_view(template_name='index.html')),
|
||||
]
|
||||
|
|
|
@ -19,6 +19,7 @@ services:
|
|||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB
|
||||
- DJANGO_SETTINGS_MODULE
|
||||
- ENVIRONMENT=development
|
||||
build: ./backend/api
|
||||
command: bash scripts/docker-entrypoint.sh
|
||||
volumes:
|
||||
|
|
|
@ -2,4 +2,4 @@ SECRET_KEY=a-long-secret-key
|
|||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=postgres
|
||||
POSTGRES_DB=fediverse
|
||||
DJANGO_SETTINGS_MODULE=backend.settings.dev
|
||||
DJANGO_SETTINGS_MODULE=backend.settings.development
|
||||
|
|
Loading…
Reference in a new issue