don't serve static files

This commit is contained in:
Tao Bror Bojlén 2019-02-20 17:14:28 +00:00
parent cbab8c33a8
commit d90f0f3218
No known key found for this signature in database
GPG key ID: C6EC7AAB905F9E6F
5 changed files with 3 additions and 6 deletions

View file

@ -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')

View file

@ -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')),
]

View file

@ -19,6 +19,7 @@ services:
- POSTGRES_PASSWORD
- POSTGRES_DB
- DJANGO_SETTINGS_MODULE
- ENVIRONMENT=development
build: ./backend/api
command: bash scripts/docker-entrypoint.sh
volumes:

View file

@ -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