Dev environments scripts

AI-generated summary

LeoMcA shares custom scripts for managing Discourse development environments, inspired by the official Docker scripts but designed to better handle multiple dev instances. The scripts allow users to set up environments (e.g., foo), create images with plugins mounted (e.g., bar), and run Rails commands easily. Available at github.com/LeoMcA/discourse-dev-scripts, the project includes a README with usage examples and welcomes contributions or feedback.

I’ve been using the docker scripts bundled with discourse for a while, but I’ve found they don’t work particularly well with my want to often switch between different dev instances (for instance, one running tests-passed, one running a branch where I’m developing an awesome new feature, one running a plugin I’m developing, and so on).

So, I rolled my own, heavily inspired by the originals:

https://github.com/LeoMcA/discourse-dev-scripts

I’ve been using them for about a week now and they haven’t set anything on :fire:, so I humbly offer them up to anyone else who may find them useful.

Basic usage is explained in the README, but to give a taste:

  • Setup a foo environment:
    source discourse-dev-scripts/setup foo
  • Create the discourse_dev_foo docker image with the bar plugin mounted as a volume:
    create -p bar
  • Run rails:
    rails s

There are some known limitations documented, and probably others I haven’t thought of, which you’re more than welcome to submit a PR to fix, or just complain about in the posts below!

12 Me gusta