You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on how it's done in reef.pl website project, it looks like whole frontend setup is inside app/src/frontend, where apps/src is also a backend root. It makes it harder to dockerize project properly - backend docker image also have whole frontend code inside and requires to manually build and check into source code bundle.js - minified JS file with whole compiled project.
Suggestion of a solution: prepare a separate directory for frontend that doesn't overlap with backend. Dockerize it, so building docker image also creates a minified bundle. During deploy copy that file into nginx staticfiles volume.
The text was updated successfully, but these errors were encountered:
Usually, it's exactly how you wrote, but the frontend part is not part of the template as it's not needed in most of the cases (other than django templates).
We think the amount of changes done to the frontend in reef.pl will be so low that it's not worth to automate it (we'll probably rewrite the thing before we achieve the return from investment)
Generally our template is not optimized for frontend at all. We do sometimes need to customize something for a client, at least a few times we've crafted something that works with their current frontend solution to make it work with our backend template - but those were so far apart from each other that extracting a common thing from them was not been practical so far. Maybe one day when we have more frontend work this will reoccur, but for now, I think we are conciously not automating it.... but.
If something has changed since it was last discussed (for example @Valian has recently implemented almost the exact same thing and could do it here very quickly, while other team members agree it would be useful), then go ahead.
Based on how it's done in reef.pl website project, it looks like whole frontend setup is inside
app/src/frontend
, whereapps/src
is also a backend root. It makes it harder to dockerize project properly - backend docker image also have whole frontend code inside and requires to manually build and check into source code bundle.js - minified JS file with whole compiled project.Suggestion of a solution: prepare a separate directory for frontend that doesn't overlap with backend. Dockerize it, so building docker image also creates a minified bundle. During deploy copy that file into nginx staticfiles volume.
The text was updated successfully, but these errors were encountered: