CodeForPhilly / CodeForPhilly/balancer-main

Serving React from the Django Server

Offen
#63 1 Kommentar 0 Reaktionen 4 zugewiesene Personen Beansprucht von @ryanrrogers Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
21
Forks
19
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Branch -> Serving

1. Currently trying to serve the react from the django server. Docker is setup currently to build the react app and put the files into the static folder. When docker-compose up is run, localhost:8000 is finding the index.html file, however, it is blank because it isn't loading the other static resources that it depends on.
2. When the react app is built, the app is compiled into a .js and .css file and then served through index.html. It is the .js and .css files that are not being found.
3. We need to find a way to incorporate the django templates with the index.html file so that these resources are loaded.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.