Trying to Figure out How UI is binded to answer binary #736
Replies: 3 comments 4 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
-
man binding of UI code is messed up. it literally took me days to figure out why in some of my changes aren't getting reflected. it seems that this is project is using build folder at one place and template folder at other place. Request to please explain are we doing this, why are we doing mixing of both folders I had a look at static.go package ui
import (
"embed"
_ "embed"
)
//go:embed build
var Build embed.FS
//go:embed template
var Template embed.FS use of template folder use of build folder incubator-answer/internal/cli/build.go Line 336 in 5132cb3 Can you make life easier by sticking only to build folder @fenbox, @LinkinStars, FYI |
Beta Was this translation helpful? Give feedback.
-
but the problem is replacing some of the build files with files in template. it's happening when file names are same I guess |
Beta Was this translation helpful? Give feedback.
-
HI I am trying to understand how this app is shipped. Upon inspecting code-base front-end is placed in UI folder. Make UI handles of prod version of react app.
I have inspected Docker file - only build command its performing is make clean build and later plugin script.
I am trying to understand this for running go backed separately (just as a backed server)
Beta Was this translation helpful? Give feedback.
All reactions