Hi Guanpeng,

you can see the steps here in the code:
https://github.com/prometheus/prometheus/blob/master/Makefile#L34-L48

The actual building of the app (after modules download etc.) is done in the
https://github.com/prometheus/prometheus/blob/master/scripts/build_react_app.sh
script
referenced from those Makefile steps.

On Mon, Jul 6, 2020 at 4:51 PM [email protected] <[email protected]> wrote:

> Hi Julius,
> Thanks for the reply, can you share the step to build frontend assets with
> me?
> thanks
> Guanpeng
>
> On Sunday, July 5, 2020 at 12:26:23 PM UTC-7 [email protected] wrote:
>
>> Hi Guanpeng,
>>
>> Yes, this is intended. The reason is that the new React UI requires some
>> separate build steps that are not Go-based, and the result of that is not
>> checked in (because it's hard to make completely reproducible builds that
>> wouldn't create diffs every time the React UI is built).
>>
>> See
>> https://github.com/prometheus/prometheus/blob/master/web/ui/react-app/README.md
>>  for
>> more details on the React UI build and dev stuff.
>>
>> On Sun, Jul 5, 2020 at 6:22 PM Guanpeng Gao <[email protected]> wrote:
>>
>>> I use go build under cmd/prometheus to generate prometheus binary
>>> but looks like it doesn't include frontend assets, different from the
>>> binary directly build from "make build"
>>> error message: error reading base template: open
>>> web/ui/templates/_base.html: no such file or directory
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Prometheus Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/prometheus-developers/c731c457-f9c8-44da-b8f1-3253dab6cbffo%40googlegroups.com
>>> <https://groups.google.com/d/msgid/prometheus-developers/c731c457-f9c8-44da-b8f1-3253dab6cbffo%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Julius Volz
>> PromLabs - promlabs.com
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-developers/d955fb6a-6825-42bc-83ce-80606011c021n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-developers/d955fb6a-6825-42bc-83ce-80606011c021n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Julius Volz
PromLabs - promlabs.com

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CAObpH5y8K3Tq_mzz_9VxeDBfsOiYt8FGFss5NtzGL7H6ahRoAw%40mail.gmail.com.

Reply via email to