Static html+css+js build, but no web service? (Host the generated static files via Dokku's central proxy mechanism?)
#7879
-
|
Okay, I'v'e been all over the docs, both Dokku and Heroku's, and I get that I can have multiple buildpacks for a given app:
This setup makes sense for Heroku, where you still ultimately need SOME dyno to handle the plain http requests. But Dokku ships with an nginx proxy already and it seems silly to run TWO nginx proxies (one for the "assets" So is there a mechanism I'm missing for a Dokku app to JUST build the assets, then shut down and leave those assets to be directly hosted by the central dokku proxy? With no |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
No, you can't do what you're trying to do out of the box. The nginx on the host is a proxy layer for all apps. You could maybe build your own scheduler plugin that extracts the files to disk and then have the host nginx point to those files. |
Beta Was this translation helpful? Give feedback.
No, you can't do what you're trying to do out of the box. The nginx on the host is a proxy layer for all apps.
You could maybe build your own scheduler plugin that extracts the files to disk and then have the host nginx point to those files.