From 5ba496bc8d84cdcc3c6a25c531c8081007de08b3 Mon Sep 17 00:00:00 2001 From: Max Moeschinger Date: Fri, 14 Feb 2025 12:57:23 +0100 Subject: [PATCH] Fix troubles discovered during setup (#2977) --- docs/docs/developers/getting-started.mdx | 3 +-- sourcecode/apis/contentauthor/.env.example | 1 + .../resources/views/admin/library-upgrade/index.blade.php | 4 ++-- sourcecode/hub/.env.example | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/developers/getting-started.mdx b/docs/docs/developers/getting-started.mdx index d197e68a2..2ee3bfa6e 100644 --- a/docs/docs/developers/getting-started.mdx +++ b/docs/docs/developers/getting-started.mdx @@ -72,8 +72,7 @@ You can create an admin user account by running: docker compose exec hub php artisan edlib:create-admin-user ``` -To enable Content Author, you must add it as an LTI tool from the admin portal: - +To enable Content Author, you must add it as an LTI tool from the admin portal. View [this page](../hosting/ca-setup.mdx#adding-content-author-to-the-hub) for more info: * LTI version: `1.1` * Launch URL: `https://ca.edlib.test/lti-content/create` * Consumer key: `h5p` diff --git a/sourcecode/apis/contentauthor/.env.example b/sourcecode/apis/contentauthor/.env.example index cb9125925..c1b593f77 100644 --- a/sourcecode/apis/contentauthor/.env.example +++ b/sourcecode/apis/contentauthor/.env.example @@ -39,6 +39,7 @@ QUEUE_DRIVER=sync #H5P_AUDIO_ADAPTER=ndla #NDLA_H5P_AUDIO_URL=https://api.ndla.no +H5P_IS_HUB_ENABLED=true H5P_SINGLE_CONTENT_UPGRADE=true H5P_NDLA_CUSTOM_CSS=false diff --git a/sourcecode/apis/contentauthor/resources/views/admin/library-upgrade/index.blade.php b/sourcecode/apis/contentauthor/resources/views/admin/library-upgrade/index.blade.php index e3de69065..b65e69e37 100644 --- a/sourcecode/apis/contentauthor/resources/views/admin/library-upgrade/index.blade.php +++ b/sourcecode/apis/contentauthor/resources/views/admin/library-upgrade/index.blade.php @@ -47,7 +47,7 @@ >
-

Local cache of content types available from h5.org

+

Local cache of content types available from h5p.org

@include('admin.library-upgrade.update-content-type-cache', ['activeTab' => 'tabContentTypes'])
@@ -113,7 +113,7 @@ >
-

Local cache of content types available from h5.org

+

Local cache of content types available from h5p.org

@include('admin.library-upgrade.update-content-type-cache', ['activeTab' => 'tabInstall'])
diff --git a/sourcecode/hub/.env.example b/sourcecode/hub/.env.example index b5724f492..ec59d96b8 100644 --- a/sourcecode/hub/.env.example +++ b/sourcecode/hub/.env.example @@ -20,7 +20,7 @@ DB_CONNECTION=pgsql DB_HOST=postgres DB_PORT=5432 DB_DATABASE=hub -DB_USERNAME=root +DB_USERNAME=postgres DB_PASSWORD=thepgpassword BROADCAST_DRIVER=log