GetDKAN / dkan-tools

CLI tools for DKAN site management
https://getdkan.github.io/dkan-tools/
15 stars 14 forks source link

How to use demo site/data #323

Closed kkounouni closed 2 years ago

kkounouni commented 2 years ago

Hello, we are using dkan 1 with drupal 7 for the government open data portal.

Now, we are testing our options with dkan2. I have configured a new server Ubuntu 20.4 and installed dkan_tools.

After many testings ... Ηow can Ι use demo data after the execution of the following commands?

mkdir my_project && cd my_project dktl init dktl demo

Thanks in advance

janette commented 2 years ago

@kkounouni if you run dktl url and open the url it gives you, do you have a functioning site with 10 sample datasets?

VitorFCM commented 2 years ago

Hi there, I'm trying the same demo tutorial on my Fedora 35 without docker, but after run dktl url I got this result: [error] URI not available! I have installed mysql and changed my src/site/settings.php to

<?php

foreach (scandir(__DIR__) as $file) {
        if (preg_match("/settings\..*\.php/", $file) == true
                && substr_count($file, "default") == 0) {
                include __DIR__ . "/{$file}";
        }
}

$config_directories['sync'] = '../config/sync';
$settings["config_sync_directory"] = '../config/sync';
$settings['hash_salt'] = 'iWkrYuVi0hNEFpXWd4baeJorqXaCJmrdu7eSje_JQQGRy3QtcDqrpl-hRLx5tRgECzTUjA0BXw';
$databases['default']['default'] = [
        'database' => 'drupal',
        'username' => 'drupal',
        'password' => 'passwordForDrupalUser',
        'host' => 'localhost',
        'port' => '3306',
        'driver' => 'mysql',
        'prefix' => '',
        'collation' => 'utf8mb4_general_ci',
        'init_commands' => [
                'big_selects' => 'SET SQL_BIG_SELECTS=1',
        ],
        'pdo' => [
                PDO::ATTR_TIMEOUT => 5,
        ],
];

If I dktl demo without this change the database access is denied. What else should I do to start the demo and get the url? Thanks!

janette commented 2 years ago

@VitorFCM Rather than running dktl demo, could you try stepping through each step on this page to narrow down where exactly the build is falling over.

dafeder commented 2 years ago

As dkan-tools support will be ending soon and this issue is quite old, closing this. @kkounouni please open a new issue here or in the DKAN discussion forum if you continue to have issues with this.