From a557f4730dc22ece0f0142e3cd2265519c48ffbf Mon Sep 17 00:00:00 2001 From: rzmk <30333942+rzmk@users.noreply.github.com> Date: Wed, 26 Mar 2025 17:06:29 -0400 Subject: [PATCH] chore: add server restart instructions for CKAN setup --- docs/onboarding/ckan-setup.mdx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/onboarding/ckan-setup.mdx b/docs/onboarding/ckan-setup.mdx index ff62826..473d3d8 100644 --- a/docs/onboarding/ckan-setup.mdx +++ b/docs/onboarding/ckan-setup.mdx @@ -163,3 +163,22 @@ ckan -c /etc/ckan/default/ckan.ini run ``` Now you should be able to view your locally running CKAN instance at [http://localhost:5000](http://localhost:5000). + +## When restarting your server + +If you shut down your Ubuntu instance and then start it again, you may want to run the following commands to get the CKAN instance running again: + +```bash +/etc/init.d/redis-server stop +cd ckan-compose +ahoy up +``` + +Then run the following (e.g., after you SSH from your preferred terminal): + +```bash +cd /usr/lib/ckan/default/ +. ./bin/activate +cd src/ckan +ckan -c /etc/ckan/default/ckan.ini run +```