[openstreetmap/openstreetmap-website] Add Docker Compose Support for Development Environment (#2409)

mmd notifications at github.com
Mon Dec 28 20:05:05 UTC 2020


@mmd-osm commented on this pull request.



> @@ -0,0 +1,30 @@
+version: "3"
+
+services:
+  web:
+    build:
+      context: .
+    volumes:
+      - .:/app
+      # don't mount tmp directory (https://github.com/Shopify/bootsnap/issues/177)
+      - /app/tmp
+    ports:
+      - "3000:3000"
+    environment:
+      # https://github.com/Shopify/bootsnap/issues/262
+      ENABLE_BOOTSNAP: 'false'

In the Github issue you've linked to, they also replaced one line in a file named  `config/boot.rb`:

On my local box, there's one line to load the bootsnap/setup module, which is used to speed up Rails application loading:
```
require "bootsnap/setup" # Speed up boot time by caching expensive operations.
```

They replace that line by making the loading process depend  on your new environment variable ENABLE_BOOTSNAP:

```
require 'bootsnap/setup' if ENV.fetch("ENABLE_BOOTSNAP", "true") == "true"
```





-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2409#discussion_r549471542
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201228/4b9fe64b/attachment.htm>


More information about the rails-dev mailing list