diff --git a/README.md b/README.md index 7b16e8eb..5db93903 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ dev script | description `bin/generate_extension` | generate extension in `src` directory `bin/install_src` | install all extensions from `src` directory (ckan-dev does not need to be running) `bin/reload` | reload ckan within the ckan-dev container without restarting -`bin/restart` | shut down and restart the whole ckan-dev container (loads new values from .env) +`bin/restart` | shut down and restart the whole ckan-dev container (use `bin/compose up -d` instead to reload new values from .env) `bin/shell` | exec bash prompt within the ckan-dev container To build the images: @@ -333,19 +333,18 @@ For convenience the CKAN_SITE_URL parameter should be set in the .env file. For 1. Create a new user from the Docker host, for example to create a new user called 'admin' - `docker exec -it ckan -c ckan.ini user add admin email=admin@localhost` + `docker compose exec ckan ckan user add admin email=admin@localhost` - To delete the 'admin' user + To set this user as a sysadmin run - `docker exec -it ckan -c ckan.ini user remove admin` + `docker compose exec ckan ckan sysadmin add admin` -2. Create a new user from within the ckan container. You will need to get a session on the running container + To delete the 'admin' user - `ckan -c ckan.ini user add admin email=admin@localhost` + `docker compose exec ckan ckan user remove admin` - To delete the 'admin' user + In development mode use `bin/ckan` instead of `docker compose exec ckan ckan` for the above commands. - `ckan -c ckan.ini user remove admin` ## 12. Changing the base image