Open akellbl4 opened 4 years ago
@umputun we can pass env variable to the template but only on build because on a start we already have built static files.
Maybe we can change site
in the template on start by sed
.
No sed, please. Env variable?
Env variable?
As I see only on the build. A static HTML can't able to get any var from any place.
@Mavrin maybe you have some fresh ideas connected with it?
site_id
(it is named justsite
on backend) was hardcoded in the templatefrontend/index.ejs
and when you change it indocker-compose.yml
it won't work with backend because anothersite
was defined.When you try to post a comment it won't work because backend isn't able to add a comment to undefined site.
Example: https://remark42.mineev.me/web/
Screenshot