Skip to content

martinyde/os2forms_forloeb_profile

 
 

Repository files navigation

OS2forms med Forløb installation profile for Drupal 9

This is a Drupal 9 installation profile for OS2forms project.

Usage

!note It's not supposed to use this profile outside https://github.com/os2forms/os2forms8 project.

Create a new drupal project

composer create-project drupal/recommended-project os2forms

Add a new repository for webform embed module to your projects composer.json

(Remove the dots)

"repositories": [
...
        {
            "//": "https://git.drupalcode.org/issue/webform_embed-3149360/-/tree/3149360-automated-drupal-9",
            "type": "package",
            "package": {
                "name": "drupal/webform_embed",
                "//": "@see https://github.com/OS2Forms/os2forms/blob/master/composer.json#L27",
                "version": "1.x-dev",
                "type": "drupal-module",
                "source": {
                    "url": "https://git.drupalcode.org/issue/webform_embed-3149360.git",
                    "type": "git",
                    "reference": "3149360-automated-drupal-9"
                }
            }
        },
...
    ],

Require this Drupal install profile.

composer require os2forms/os2forms_forloeb_profile

Setup your local settings file

web/sites/default/settings.local.php

/**
 * Database connection.
 */
$databases['default']['default'] = [
  'database' => '',
  'username' => '',
  'password' => '',
  'host' => '',
  'port' => '',
  'driver' => '',
  'prefix' => '',
];

/**
 * Config directory.
 */
$settings['config_sync_directory'] = '../config/sync';

/**
 * Hash salt.
 */
$settings['hash_salt'] = '';

Setup settings.php

cp web/sites/default/default.settings.php web/sites/default/settings.php

Add local settings reference to web/sites/default/settings.php

if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
   include $app_root . '/' . $site_path . '/settings.local.php';
}

Require drush for your project

composer require drush/drush

Install site with this installation profile

vendor/bin/drush -y site-install os2forms_forloeb_profile

About

This profile adds the configuration and initial install of OS2forms 2.1 med Forløb.

Resources

Stars

Watchers

Forks

Packages

No packages published