Plugin to overwrite "nginx-app-template-source" trigger, sigil templating fails (Using Go) #6991
-
Hey, I'm working on a small personal plugin to overwrite the "nginx-app-template-source" trigger as suggested in another post here. The code of my plugin is on GitHub and it's very simple. It has two features: A command to move a config to a specific place and implementing the trigger to return that path based on the app name. It seems to work except that the templating step is failing as the variables are not set. That makes the
Here's a full Happy to hear other feedback too, as this is my first plugin. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your bug is that you are ignoring the second argument. That argument controls which template to render. In this case, you are telling Dokku to use the |
Beta Was this translation helpful? Give feedback.
Your bug is that you are ignoring the second argument. That argument controls which template to render. In this case, you are telling Dokku to use the
nginx.conf.sigil
to renderhsts-config
. You should only respond with a template when the argument isapp-config
.