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