Pushing the output of a static build site is in conflict with gitignore #7087
rosenbergm
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Typically you'll run that build process in the image you are building, so the build command would happen in the push (or on your remote CI process if going down that route). I see that zola is a rust app... do you mind sharing how you are building your app so we can help you modify that process to work with Dokku? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there, people of Dokku!
I just tried to deploy a static site with the Nginx buildpack and after some very tough
moments, I got it working!
Now I've stumbled upon a new "issue". See, my build system (zola) produces a
publicdirectory with the website contents. This directory is, logically, also in my.gitignorefile. I don't want my repository polluted.However, to deploy the static content, it needs to be staged and committed, so it can
be pushed to the Dokku remote.
How do you solve this kind of a problem? Is the best solution indeed using
git add -f?Cheers!
Beta Was this translation helpful? Give feedback.
All reactions