Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP serve static files from django #49

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

travissouthard
Copy link
Collaborator

Overview

For @themightychris: a mostly there static setup

Closes #39

Testing instructions

  • Run npm run prod to get the static files to Django
  • Run docker-compose up --build to. run the server
  • Navigate to localhost:8321/

Checklist before merge

  • Update the CHANGELOG.md
  • Rebase your changes from whatever branch you're merging to

Sorry, something went wrong.

@@ -6,6 +6,7 @@
"scripts": {
"dev": "vite --host --port 4321",
"build": "tsc && vite build",
"prod": "npm run build && rm -rf ../django/dist && mv -f dist ../django/static",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"prod": "npm run build && rm -rf ../django/dist && mv -f dist ../django/static",
"prod": "npm run build && rm -rf ../django/static && mv -f dist ../django/static",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serve React via static folder in Django
2 participants