infinum / eightshift-boilerplate

This repository contains all the tools you need to start building a modern WordPress theme, using all the latest front end development tools.
https://eightshift.com
MIT License
543 stars 69 forks source link

Styles and docker-compose #267

Closed sternj closed 11 months ago

sternj commented 1 year ago

Describe the question we can answer

Like last time, I've been working on setting up a development (and eventually prod) environment using docker-compose. I'm completing the setup as per the blog post that dingo-d pointed me to, but I'm not quite getting the styles (see screenshot below). I think this has something to do with me misunderstanding either how the stylesheets are created or how to deal with them in the context of an environment with nginx running in front of it. I've tried running build instead of start as well. What port or route trickery do I need to do?

I'm seeing some similarity to this issue, I have removed public, run npm run build, and verified that application-*.css is being loaded and appears to be CSS.

Screenshots, screen recording, code snippet

image

Environment info

I'm working from dingo-d's boilerplate. here's my forked repo

Please confirm that you have searched existing issues in this repo.

Yes

Please confirm that you have searched in our documentation and couldn't find the answer.

Yes

dingo-d commented 1 year ago

Are you running on Mac or Windows when using Docker?

Mac is known to have issues with syncing the local filesystem changes due to the difference between the filesystems between Docker and Mac.

sternj commented 1 year ago

Linux, actually

On Tue, May 30, 2023, 1:00 PM Denis Žoljom @.***> wrote:

Are you running on Mac or Windows when using Docker?

Mac is known to have issues with syncing the local filesystem changes due to the difference between the filesystems between Docker and Mac.

— Reply to this email directly, view it on GitHub https://github.com/infinum/eightshift-boilerplate/issues/267#issuecomment-1568772539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWVMH64MSSTLX3PXEW5O73XIYRS7ANCNFSM6AAAAAAYTD7NGE . You are receiving this because you authored the thread.Message ID: @.***>

sternj commented 1 year ago

To be more specific, now that I'm back at a shell, I'm running Ubuntu 22.04.1 headless with kernel 5.15.0-72 and Docker v24.0.0 build 98fdcd7

dingo-d commented 1 year ago

Well that's odd, Linux should be super fast with Docker :S

Not 100% sure what could be the case as why it doesn't work tbh, I guess someone from the Eightshift team will check what's the problem :)

sternj commented 1 year ago

Yeah I think that I'm missing something architectural, it doesn't seem like there are any requests left outstanding from the browser and I'm wondering if I need to expose another route or port.

Anyway, if you have anyone who you can ping about this, I would very much appreciate it!

iruzevic commented 11 months ago

it sounds like this can be closed