CodeForPhilly / CodeForPhilly/third-places

Serve React via static folder in Django

Đang mở
#39 0 bình luận 0 reaction 1 người được giao Được @travissouthard nhận Xem trên GitHub
django docker
Ngôn ngữ chính
Python
Star
8
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

# Overview

As part of the deployment and actions added by @themightychris we want to build our React bundle and deliver it as static files via our Django container.

# Context

We _could_ leave the frontend to be delivered as a separate container, but it would require many more resources on Code for Philly's part and on the user's part. Serving this all from one container will be much better for everyone in the long run.

# Suggested solution (optional)

This [blog post](https://medium.com/codex/deploying-react-through-djangos-static-files-part-1-dev-setup-8a3a7b93c809) shows a good way to move forward with this, starting at the "Configuring Django and static files" section since we already have our front and back ends built

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.