From 65dac3b88e37ff745577c2b235e7d8b196b5d809 Mon Sep 17 00:00:00 2001 From: Armin Kirchner Date: Thu, 7 Aug 2025 18:00:51 +0200 Subject: [PATCH] chore: Run all service for development with `bin/dev` It takes time to start all services for local verification. Running everything with `bin/dev` increases productivity. --- Procfile | 4 ++++ bin/dev | 2 +- docs/LOCAL_SETUP.md | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 000000000..49a2f384f --- /dev/null +++ b/Procfile @@ -0,0 +1,4 @@ +assets: bin/shakapacker-dev-server +executor: ../poseidon/poseidon +worker: bin/jobs +web: bin/rails s -p 7000 diff --git a/bin/dev b/bin/dev index 5f91c2054..52cbc4064 100755 --- a/bin/dev +++ b/bin/dev @@ -1,2 +1,2 @@ #!/usr/bin/env ruby -exec "./bin/rails", "server", *ARGV +exec "overmind", "start", *ARGV diff --git a/docs/LOCAL_SETUP.md b/docs/LOCAL_SETUP.md index b16eb80de..ac7b7f144 100644 --- a/docs/LOCAL_SETUP.md +++ b/docs/LOCAL_SETUP.md @@ -239,6 +239,11 @@ For exporting metrics, enable the Prometheus exporter in `config/code_ocean.yml` bundle exec prometheus_exporter ``` +#### Overmind (optional) + +A Procfile is configured to run all services with the `bin/dev` command. [Overmind](https://github.com/DarthSim/overmind) is required as a process manager and the Poseidon must be in placed in the parent directory (../poseidon/poseidon). + + ## Native Setup for Nomad As detailed earlier, this guide focuses on CodeOcean. Nevertheless, the following provides a short overview of the most important steps to get started with Nomad (as required for Poseidon). Please refer to the [full setup guide](https://github.com/openHPI/poseidon/blob/main/docs/development.md) for more details.