Skip to content

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

"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

3 participants