manage.py tailwind build exits with success even if command failed
See original GitHub issueIn my Dockerfile I have this step: RUN ./manage.py tailwind build
(followed by ./manage.py collectstatic
). The build completed successfully, but the image was broken, because it didn’t contain the static/css/dist
directory.
It took a while to figure out; ideally, if manage.py tailwind build
fails, it should exit with an error, so that the whole image building fails.
The error was apparent from inside the Docker container; should have run manage.py tailwind install
first:
$ ./manage.py tailwind build && echo ok
> theme@3.1.1 build
> npm run build:clean && npm run build:tailwind
> theme@3.1.1 build:clean
> rimraf ../static/css/dist
sh: 1: rimraf: not found
ok
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
error executing "manage.py tailwind start" · Issue #8 - GitHub
Hi all, this is clearly a problem with Windows, I don't have Windows so I can't check. If anyone using Windows has solved...
Read more >Can't Start Django-Tailwind in Dev Mode - Stack Overflow
One thing I noticed is that the command that it is failing on uses watch , which is not a Windows command. However,...
Read more >Installing Tailwind CSS v2 with Django-Tailwind | TimOnWeb
Django-Tailwind has a python manage.py tailwind init <my_theme_name> command that generates a separate Django app for you.
Read more >Installation — Django-Tailwind 2.0.0 documentation
Step-by-step instructions . Install the django-tailwind package via pip : python -m pip ...
Read more >[Support Guide] Frequently encountered problems during builds
1. First steps - ruling out the obvious · 1.5 Build logs · 2. Command not found - we need to know what...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Indeed, added returncode
1
in3.3.0
. Thanks for reporting.@2qxtx I’m also on django-tailwind 3.4.0 and rimraf got installed alright. This is in a Docker image, so the
node_modules
is not left over from a previous version. Hope this helps: