Figured out why tailwindcss fails on Linux.

master
Zed A. Shaw 3 days ago
parent a2080308ca
commit 7bb553f485
  1. 1
      .gitignore
  2. 2
      .ozai.json
  3. 5
      Makefile
  4. 4
      go.sum
  5. 20
      pages/index.md

1
.gitignore vendored

@ -31,3 +31,4 @@ config.toml
public
*.idx
*.sqlite3
webapp

@ -3,7 +3,7 @@
"Processes": {
"webapp": {
"URL": "/webapp",
"Command": "webapp",
"Command": "./webapp",
"Args": []
},
"ssgod": {

@ -28,11 +28,14 @@ migrate_down:
docs:
pkgsite --open
fix_ubuntu_ulimit:
ulimit -n 65536
tailwind:
tailwindcss --input ./static/input_style.css --output ./static/style.css
tailwind_watch:
tailwindcss --input ./static/input_style.css --output ./static/style.css --watch
tailwindcss --input ./static/input_style.css --output ./static/style.css --watch=always
tailwind_install:
curl -LO https://github.com/tailwindlabs/tailwindcss/releases/download/v4.1.12/tailwindcss-linux-x64

@ -121,11 +121,7 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EV
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
lcthw.dev/go/ozai v0.0.0-20250910184003-c03f8efb4764 h1:usA3aED1GOnoqYSqfH0kUgickaQauyRoQW8yGaY1RK0=
lcthw.dev/go/ozai v0.0.0-20250910184003-c03f8efb4764/go.mod h1:AwxRrUAb/KtUzSWgKmhv/eBg6ZjJ4tVZ9YA/DlKqtWs=
lcthw.dev/go/ozai v0.1.0 h1:LNuLMZV4m+ciHRjf1atcunR/63Jguvz3puEzD5vmFec=
lcthw.dev/go/ozai v0.1.0/go.mod h1:AwxRrUAb/KtUzSWgKmhv/eBg6ZjJ4tVZ9YA/DlKqtWs=
lcthw.dev/go/ssgod v0.0.0-20250910143122-4457e9bad2af h1:PN/XR1qhfxTn32AGOdQgyBPJs0qqnWVLcPxE5IUENgM=
lcthw.dev/go/ssgod v0.0.0-20250910143122-4457e9bad2af/go.mod h1:c0cAznS0qaDUOIGU8nKODfuFLwemEi/KGDCf8guTleA=
lcthw.dev/go/ssgod v0.1.0 h1:b1YkIc7hEgUen8zF85ZRG5YCyCeFAvx1KtmNFp1OuMg=
lcthw.dev/go/ssgod v0.1.0/go.mod h1:c0cAznS0qaDUOIGU8nKODfuFLwemEi/KGDCf8guTleA=

@ -90,6 +90,26 @@ this, when you're ready to work just do:
make dev
```
## Linux Bug?
I found that on Ubuntu the `tailwindcss` command "wouldn't run." Turns out when `tailwindcss` forks
it does the right thing and closes all possible open file descriptors, _but_ Ubuntu has set the hard
limit to 1 billion:
```shell
$ ulimit -Hn
1073741816
```
This is a _lot_ of files to try to close, so `tailwindcss` is actually stuck doing that. You can
fix this with:
```shell
ulimit -n 65536
```
You can pick any reasonable number, and then `tailwindcss` works like expected.
## Configuration
There's 3 basic moving parts to the whole system: `webapp.exe`, `ssgod`, `tailwind`, and `ozai`.

Loading…
Cancel
Save