From 3c9c3dd41fbb218f5001fdfba0c13978a722f9b7 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 3 Jul 2024 16:38:45 +0200 Subject: [PATCH 1/2] Update README Add section: "Updating the .env file for development mode" --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 7e4fde87..ad0d6634 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,16 @@ In VS Code: You can now set breakpoints and remote debug your CKAN development instance. +#### Updating the .env file for development mode + +The Docker Compose .env file by default is set up for production mode. There are a few changes needed if you would +like to run in Development mode: + +1. Change the `CKAN_SITE_URL` variable to be: http://localhost:5000 +2. Update the `CKAN__DATAPUSHER__CALLBACK_URL_BASE` variable to use the `ckan-dev` container name: http://ckan-dev:5000 +3. Update the `DATAPUSHER_REWRITE_URL` variable to also use the `ckan-dev` container name http://ckan-dev:5000 + + ## 5. CKAN images ![ckan images](https://user-images.githubusercontent.com/54408245/207079416-a01235af-2dea-4425-b6fd-f8c3687dd993.png) From 020b1b8259d36c4fd05e074b5429028536bd8eff Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 4 Jul 2024 09:30:17 +0200 Subject: [PATCH 2/2] Update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ad0d6634..6021a4d1 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ * [Create an extension](#create-an-extension) * [Running HTTPS on development mode](#running-https-on-development-mode) * [Remote Debugging with VS Code](#remote-debugging-with-vs-code) + * [Updating the environment file for development mode](#updating-the-environment-file-for-development-mode) * [5. CKAN images](#5-ckan-images) * [Extending the base images](#extending-the-base-images) * [Applying patches](#applying-patches) @@ -152,10 +153,9 @@ In VS Code: You can now set breakpoints and remote debug your CKAN development instance. -#### Updating the .env file for development mode +#### Updating the environment file for development mode -The Docker Compose .env file by default is set up for production mode. There are a few changes needed if you would -like to run in Development mode: +The Docker Compose environment `.env` file by default is set up for production mode. There are a few changes needed if you would like to run in Development mode: 1. Change the `CKAN_SITE_URL` variable to be: http://localhost:5000 2. Update the `CKAN__DATAPUSHER__CALLBACK_URL_BASE` variable to use the `ckan-dev` container name: http://ckan-dev:5000