From d5381ad3d8c0f3db31d5317ae922a6d6f78deb26 Mon Sep 17 00:00:00 2001 From: Sam Gunaratne <385176+Samze@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:37:47 -0600 Subject: [PATCH] Update README capi locally instructions (#3793) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 78e677f39af..8f5e52e8715 100644 --- a/README.md +++ b/README.md @@ -110,19 +110,19 @@ cf login -u ccadmin -p secret When the Docker containers have been set up as described above, you can start the cloud controller locally. Start the main process with: ``` -./bin/cloud_controller -c ./tmp/cloud_controller.yml +DB_CONNECTION_STRING=mysql2://root:supersecret@127.0.0.1:3306/ccdb ./bin/cloud_controller -c ./tmp/cloud_controller.yml ``` Then start a local worker: ``` -CLOUD_CONTROLLER_NG_CONFIG=./tmp/cloud_controller.yml bundle exec rake jobs:local +DB_CONNECTION_STRING=mysql2://root:supersecret@127.0.0.1:3306/ccdb CLOUD_CONTROLLER_NG_CONFIG=./tmp/cloud_controller.yml bundle exec rake jobs:local ``` Start a delayed_job worker: ``` -CLOUD_CONTROLLER_NG_CONFIG=./tmp/cloud_controller.yml bundle exec rake jobs:generic +DB_CONNECTION_STRING=mysql2://root:supersecret@127.0.0.1:3306/ccdb CLOUD_CONTROLLER_NG_CONFIG=./tmp/cloud_controller.yml bundle exec rake jobs:generic ``` And finally start the scheduler: ``` -CLOUD_CONTROLLER_NG_CONFIG=./tmp/cloud_controller.yml bundle exec rake clock:start +DB_CONNECTION_STRING=mysql2://root:supersecret@127.0.0.1:3306/ccdb CLOUD_CONTROLLER_NG_CONFIG=./tmp/cloud_controller.yml bundle exec rake clock:start ``` Known limitations: