|
|
|
|
|
by saevarom
1740 days ago
|
|
This is very interesting to me. I'm essentially a one man devOps team at a small web agency hosting multiple client websites mostly based on Django. One question; what do you do about compiling and transpiling Javascript? Right now it's done via webpack in the local environment and then pushed out to S3/CDN. |
|
I have a question. Are you deploying it to your servers/cloud accounts or clients’ accounts?
Regarding your questions: it is responsibility of the app to build and upload the static assets where needed.
If you want recommendation what to do, I’d say you’ll need a custom dockerfile, install node, run webpack in there and collect static.
If you are not using collectstatic in that process then given the lack of details I’d say why are you doing it in the same repo at all. But again – you provided very little details.
So if it is a website(server rendered pages, SEO is important,etc) - you should have node and do optimisations before pushing to s3.
If it is an app (RIA,SPA) then I’d say don’t mix frontend and backend. Decouple it and ship frontend separately.
Appliku Interface is built and served with Netlify. I still remember those dark times when I had frontend inside the main repo. It was largely inconvenient.
Either way happy to chat about your issues in our discord server. I am more than happy to help you figuring this out.