Commit a0096a81 authored by Alain Takoudjou's avatar Alain Takoudjou

stack/drupal: no next.js is not configured for drupal8

parent edc83f79
......@@ -27,6 +27,7 @@ db-user = drupal
publish-list =
admin-username
admin-password
enable-php8 = True
[install-drupal]
recipe = slapos.recipe.cmmi
......@@ -73,6 +74,7 @@ url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/instance.cfg
extensions = jinja2.ext.do
context =
key application_deployment_php8 custom-application-deployment:enable-php8
key buildout_egg_directory buildout:eggs-directory
key buildout_develop_directory buildout:develop-eggs-directory
key buildout_directory buildout:directory
......
[instance]
filename = instance.cfg.in
md5sum = 406bfbc4a683156593da333a01e5faab
md5sum = ee73fe8e6b6959cfa137a02b9ce038f0
[template-drupal-instance]
filename = drupal-instance.cfg.in
md5sum = b0c371ae31203d3984599ee617fd8f65
md5sum = eeef9228e93cea091f61761c2635ec75
[template-settings.php]
filename = default.settings.php.in
......
......@@ -16,7 +16,6 @@ offline = true
[apache-php-configuration]
enable-php8 = !py!True
document-root = ${:default-document-root}/docroot
[template-base]
......@@ -119,7 +118,7 @@ input = inline:#!/bin/sh
# Rebuild all caches.
drush cache:rebuild
{% if parameter_dict.get('php8') == True %}
# install modules Next.js and Next.js JSON:API
drush en next next_jsonapi --verbose --yes
# install drush configs
......@@ -128,6 +127,7 @@ input = inline:#!/bin/sh
--uri=default --root=${directory:www} \
--verbose --yes
drush cache:rebuild
{%- endif %}
echo "done" > $INSTALL_FILE
chmod 440 $INSTALL_FILE
......
......@@ -14,6 +14,7 @@ offline = true
[dynamic-template-drupal-parameters]
# Additional parameters for instance apache-php
php8 = !py!{{ application_deployment_php8 }}
[dynamic-template-drupal]
<= jinja2-template-base
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment