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