Starting a new project, step-by-step
-
To start a project with DKAN tools, create a project directory.
mkdir my_project && cd my_project -
Inside the project directory, initialize your project.
dktl initUsing a specific version of DKAN
Define the tag or branch on this command (e.g.
dktl init --dkan=branch-name). By itself, the init command will use the latest release of DKAN. -
Make a full Drupal/DKAN codebase, primarily using composer (Options are passed directly to
composer install, see documentation).dktl makemake options:
--prefer-source--prefer-dist--no-dev--optimize-autoloader
-
Install. Creates a database, installs Drupal, and enables DKAN.
dktl installinstall options:
--existing-configAdd this option to preserve existing configuration.
-
Add the front end.
dktl frontend:install dktl frontend:build -
Access the site.
dktl drush uli -
Stop the docker-compose project, removing all containers and networks.
dktl downThis will keep files downloaded during the make phase, as well as any changes made to them. But any database will be removed and all content lost.