-
Notifications
You must be signed in to change notification settings - Fork 0
Using Vite Production Build Locally
Wesley B edited this page Jun 24, 2022
·
1 revision
-
Stop all running containers.
-
Build assets:
npm ci && npm run build
-
Set
_DEBUG = False
inserver/portal/settings/settings_custom.py
-
Tweak Nginx conf to prevent Django from trying to serve static files.
- Edit
server/conf/nginx/nginx.conf
. - Change line 83 to:
location ~ ^/(auth|workbench|tickets|googledrive-privacy-policy|public-data|accounts|api|login|webhooks|search) {
- Edit
-
Restart all containers.
-
Tell Django to use the assets you just built.
- Shell into the Django container:
docker exec -it core_portal_django /bin/bash
- Collect static files:
python manage.py collectstatic
- Shell into the Django container:
-
Navigate to your local portal instance and check that the UI renders correctly.
- In your Network tab, the index and vendor bundle hashes should match the ones in
client/dist/
:
- In your Network tab, the index and vendor bundle hashes should match the ones in
TACC ACI WMA Core-Portal Project Documentation