You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's been about 5 years since I first started with dokku, and I love the stability and ease of use. The only hard part was deploying static HTML sites, which seemed to be a bit convoluted.
So I built dokku-pages, which is a small tool to build a tiny container for static hosting.
# Install
npm i -g dokku-pages
# SIMPLE - Push "public" directory to dokku app named myapp
dokku-pages deploy -g [email protected]:myapp -d public/
# ADVANCED - Also use minimal image (%95 smaller), also use CORS headers for and example.com subdomain
dokku-pages deploy -g [email protected]:myapp -d public/ --minimal --allow-cors '.+\\.example.com'
And I put it in my package.json to use in CI deploys
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey Dokku!
It's been about 5 years since I first started with dokku, and I love the stability and ease of use. The only hard part was deploying static HTML sites, which seemed to be a bit convoluted.
So I built dokku-pages, which is a small tool to build a tiny container for static hosting.
And I put it in my
package.json
to use in CI deploysThere's many solutions for static hosting, but creating apps quickly in dokku is just so much easier and is under our control!
Anyway, that's me showing and telling, let me know what you think! 👍
Beta Was this translation helpful? Give feedback.
All reactions