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

Can't get dev autobuild to work in container. #157

Open
WsevoL0D opened this issue Nov 4, 2022 · 0 comments
Open

Can't get dev autobuild to work in container. #157

WsevoL0D opened this issue Nov 4, 2022 · 0 comments

Comments

@WsevoL0D
Copy link

WsevoL0D commented Nov 4, 2022

Hello
I'm trying to add django-tailwind to existing containerized django project(based on basic django compose example)

I followed this project's step by step instructions to achieve this. But as I'm adding to existing project I've done slight modification: used S6 overlay to run tailwind python manage.py tailwind start in parallel to python manage.py runserver.

I have successfully started development server and it periodically says its building my classes:

> theme@3.4.0 start
> npm run dev
> theme@3.4.0 dev
> cross-env NODE_ENV=development tailwindcss --postcss -i ./src/styles.css -o /code/static/css/dist/styles.css -w

and ... nothing happens, styles.css doesn't get created or updated.

If I kick production build from container, everything works as expected:

/code # python manage.py tailwind build
> theme@3.4.0 build
> npm run build:clean && npm run build:tailwind
> theme@3.4.0 build:clean
> rimraf ../static/css/dist
> theme@3.4.0 build:tailwind
> cross-env NODE_ENV=production tailwindcss --postcss -i ./src/styles.css -o /code/static/css/dist/styles.css
Rebuilding...
Done in 8735ms.

and I have updated tailwind styles.css for my app.

Could you help me to fix or at least recommend how to troubleshoot development server?

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

No branches or pull requests

1 participant