[openstreetmap/openstreetmap-website] CSS Error using docker (Issue #3984)

Carlos Magno Oliveira de Abreu notifications at github.com
Thu Mar 23 11:19:17 UTC 2023


@gravitystorm 

No. I'm not using Windows at all. I'm in a Ubuntu host building a Docker image and running it in same Ubuntu server.

The frontend is complaining because there is a ```link ../common.scss``` inside ```app/assets/stylesheets/ltr/common.scss``` as you can see in my ticket.

And so for ```app/assets/stylesheets/ltr/small.scss``` but there is no ```small.scss``` anywhere.

https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/stylesheets/ltr/small.scss

The interpreter could not translate the word ```link``` anyway so I need to copy https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/stylesheets/common.scss to "ltr" and "rtl" folders and just ignore small.scss because the frontend was not care about it anyway.

I confess I'm not using Docker Compose because I don't like it ( don't ask. I simply don't like). Here are my steps:

First I've created the config files to point to my database. Nothing wrong about that. 

Then:

```docker build --tag=osm-web:1.0 --rm=true . ``` from the repo root folder and then

```
docker run --name osmseed-web --hostname osmseed-web --network mynetwork \
	-v /srv/osm-seed-web/app-tmp:/app/tmp \
	-v /srv/osm-seed-web/app-storage:/app/storage \
	-p 36300:3000 \
    -d osm-web:1.0 bundle exec rails s -p 3000 -b '0.0.0.0'
```

Then I face the error I mentioned. My workaround was just copy common.scss from stylesheets folder to "ltr" and "rtl" folders and all goes fine.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3984#issuecomment-1481010484
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3984/1481010484 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230323/5b8f1531/attachment.htm>


More information about the rails-dev mailing list