1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2026-04-24 01:27:37 +00:00

2 Commits
v31 ... v32

Author SHA1 Message Date
9c8f348d58 Merge pull request #102 from dokku/fix-missing-logs-dir
fix: create nginx logs directory for precompiled binary builds
2026-04-23 04:27:23 -04:00
5b53da2756 fix: create nginx logs directory for precompiled binary builds
The precompiled binary and cache code paths only copy the nginx binary
without creating the logs/ directory that make install normally creates.
This causes nginx to fail at startup with a fatal error when trying to
open compiled-in default log paths at /app/nginx/logs/.
2026-04-23 04:17:18 -04:00

View File

@ -123,6 +123,9 @@ else
echo "$NGINX_VERSION" >"${CACHE_DIR}/bin/.nginx-version" echo "$NGINX_VERSION" >"${CACHE_DIR}/bin/.nginx-version"
fi fi
# Create logs directory for nginx's compiled-in default log paths
mkdir -p "$BUILD_DIR/nginx/logs"
# Update the PATH # Update the PATH
mkdir -p "$BUILD_DIR/.profile.d" mkdir -p "$BUILD_DIR/.profile.d"
cat >"$BUILD_DIR/.profile.d/nginx.sh" <<"EOF" cat >"$BUILD_DIR/.profile.d/nginx.sh" <<"EOF"