sam
(Sam Saffron)
28. Januar 2020 um 06:36
2
Lustig, dass @pixeltrix gestern darüber gestoßen ist und diesen Hack als Workaround verwendet hat:
committed 12:09PM - 27 Jan 20 UTC
Sprockets 3.0 and later uses Base64 digests for cache paths and these
present pr… oblems when used with NTFS on Windows which is case-insensitive.
By allowing the overriding of the cache path from an environment variable
we can use a Docker volume to cache the asset compilation. This is actually
faster on both Mac and Windows than the default path.
Ich empfehle, einfach WSL2 zu installieren und unser WSL2-Setup zu nutzen, das deutlich schneller ist und sich leichter nachvollziehen lässt:
This tutorial has been tested on Windows 10 and 11.
To set up a development environment for Discourse on Windows, you can do it using Windows Subsystem for Linux feature.
This setup requires the WSL 2 installation. It is only available in Windows 10 builds 18917 or higher. We’ll assume that you already installed Windows Subsystem for Linux 2 (Ubuntu) on your Windows 10 system. WARNING: Install Ubuntu 18.04, and not 20.04 since some installations will fail on 20.04. For m…
Die Installation der Entwicklungsumgebung ist trivial: Du richtest einfach WSL2 ein, installierst Docker und nutzt dann unser Docker-Entwicklungs-Setup.
Developing using Docker
Since Discourse runs in Docker, you should be able to run Discourse directly from your source directory using a Discourse development container.
Pros: No need to install any system dependencies, no configuration needed at all for setting up a development environment quickly.
Cons: Will be slightly slower than the native dev environment on Ubuntu, and much slower than a native install on MacOS.
See also Developing Discourse using a Dev Container …