ilikerobots / cookiecutter-vue-django

Vue 3 + Vite + Django with no compromises. Use Vue SFCs directly in Django Templates, DRF not required.
BSD 3-Clause "New" or "Revised" License
208 stars 24 forks source link

Deploying using Gunicorn and Nginx #17

Closed Jacks349 closed 3 years ago

Jacks349 commented 4 years ago

First of all, thank you for making this tool available! I created a project, and i can run it without any problem from my local by starting a development server for Django and another one for Vue. Now i'm trying to deploy it on DigitalOcean, but i have a problem: while the whole Django part is rendered, Vue is not loaded. So i can see the templates but i can't see my Vue components. If i open my console, i'll see a bunch of NOT FOUND errors. I did npm run build and collected my static using manage.py collectstatic, but i still have this problem. Do i need to do something else too? Thanks in advance!