[GH-ISSUE #339] Add support for static build #219

Open
opened 2026-03-03 11:14:07 +03:00 by kerem · 3 comments
Owner

Originally created by @pavanbhaskardev on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/dflow-sh/dflow/issues/339

Originally assigned to: @pavanbhaskardev on GitHub.

  1. Currently we're not support hosting plain html, css files
  2. We need serve static content using this static build
Originally created by @pavanbhaskardev on GitHub (Jul 14, 2025). Original GitHub issue: https://github.com/dflow-sh/dflow/issues/339 Originally assigned to: @pavanbhaskardev on GitHub. 1. Currently we're not support hosting plain html, css files 2. We need serve static content using this static build
Author
Owner

@pavanbhaskardev commented on GitHub (Jul 17, 2025):

dokku has official plugin support for static-build

Process

  1. dokku apps:create static-site
  2. dokku buildpacks:set static-site https://github.com/dokku/buildpack-nginx.git
  3. dokku config:set static-site NGINX_DEFAULT_REQUEST=index.html NGINX_ROOT=_site // add NGINX_ROOT if static files are present in a directory
  4. dokku git:sync --build static-site https://github.com/pavanbhaskardev/pavanbhaskar.github.io.git main

caveats

  1. this approach requires .static file with empty content in root directory of repository
<!-- gh-comment-id:3082750872 --> @pavanbhaskardev commented on GitHub (Jul 17, 2025): dokku has [official plugin](https://github.com/dokku/heroku-buildpack-nginx) support for static-build ### Process 1. dokku apps:create static-site 2. dokku buildpacks:set static-site https://github.com/dokku/buildpack-nginx.git 3. dokku config:set static-site NGINX_DEFAULT_REQUEST=index.html NGINX_ROOT=_site // add NGINX_ROOT if static files are present in a directory 4. dokku git:sync --build static-site https://github.com/pavanbhaskardev/pavanbhaskar.github.io.git main ### caveats 1. this approach requires .static file with empty content in root directory of repository
Author
Owner

@akhil-naidu commented on GitHub (Sep 24, 2025):

@pavanbhaskardev, also confirm if websites based on jQuery and PHP will work in this static build, or if we need to create a separate buildpack for it.

Also, confirm whether Herokuish or Railpack supports it.

<!-- gh-comment-id:3330026636 --> @akhil-naidu commented on GitHub (Sep 24, 2025): @pavanbhaskardev, also confirm if websites based on `jQuery` and `PHP` will work in this static build, or if we need to create a separate buildpack for it. Also, confirm whether Herokuish or Railpack supports it.
Author
Owner

@pavanbhaskardev commented on GitHub (Sep 26, 2025):

<!-- gh-comment-id:3337010697 --> @pavanbhaskardev commented on GitHub (Sep 26, 2025): - Tested by deploying 3 static github-repositories with railpack version `0.7.2` on my limactl ubuntu server - https://github.com/pavanbhaskardev/mr.lawyer.git - stack: html, css - railpack detected as static - https://github.com/banago/simple-php-website.git - stack: html, php - railpack detected as php - https://github.com/shawonk007/static-website-resume.git - stack: html, jQuery - railpack detected as static - All 3 websites are deployed successfully - Need to test with static-builder
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dflow#219
No description provided.