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.