Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos
Commits
098a5e33
Commit
098a5e33
authored
May 24, 2023
by
Alain Takoudjou
Committed by
Alain Takoudjou
Jun 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drupal: build next.js after drupal is correctly installed
parent
bd7fac18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
software/drupal/buildout.hash.cfg
software/drupal/buildout.hash.cfg
+1
-1
software/drupal/drupal-instance.cfg.in
software/drupal/drupal-instance.cfg.in
+7
-4
No files found.
software/drupal/buildout.hash.cfg
View file @
098a5e33
[template-drupal-instance]
[template-drupal-instance]
filename = drupal-instance.cfg.in
filename = drupal-instance.cfg.in
md5sum =
5b1c36160fdf459019785ef2d002a278
md5sum =
3df0d11d328701ae3e45387efa72a4de
[template-settings.php]
[template-settings.php]
filename = default.settings.php.in
filename = default.settings.php.in
...
...
software/drupal/drupal-instance.cfg.in
View file @
098a5e33
...
@@ -86,10 +86,13 @@ command = if [ -z "$(ls -A ${directory:node})" ]; then
...
@@ -86,10 +86,13 @@ command = if [ -z "$(ls -A ${directory:node})" ]; then
rm -rf ${directory:node};
rm -rf ${directory:node};
cp -ax {{ nextjs_app_location }}/ ${directory:node};
cp -ax {{ nextjs_app_location }}/ ${directory:node};
fi
fi
export NEXT_PUBLIC_DRUPAL_BASE_URL=${request-frontend:connection-secure_access}
if [ -s "${directory:var}/.install-done" ]; then
export NEXT_IMAGE_DOMAIN=${request-frontend:connection-domain}
# build next.js require next and next_jsonapi installed
cd ${directory:node}
export NEXT_PUBLIC_DRUPAL_BASE_URL=${request-frontend:connection-secure_access}
{{ nodejs_location }}/bin/npm run build
export NEXT_IMAGE_DOMAIN=${request-frontend:connection-domain}
cd ${directory:node}
{{ nodejs_location }}/bin/npm run build
fi
update-command = ${:command}
update-command = ${:command}
stop-on-error = true
stop-on-error = true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment