diff --git a/.gitignore b/.gitignore index df4168b..7e480e2 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ config.toml public *.idx *.sqlite3 +webapp diff --git a/.ozai.json b/.ozai.json index fbabbb5..388f607 100644 --- a/.ozai.json +++ b/.ozai.json @@ -3,7 +3,7 @@ "Processes": { "webapp": { "URL": "/webapp", - "Command": "webapp", + "Command": "./webapp", "Args": [] }, "ssgod": { diff --git a/Makefile b/Makefile index 03b05cb..a18c404 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/go.sum b/go.sum index 950943f..fbc5f02 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/pages/index.md b/pages/index.md index 113524e..93bf624 100644 --- a/pages/index.md +++ b/pages/index.md @@ -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`.