@@ -36,7 +36,7 @@ Create your `build` hook to install them all:
36
36
37
37
1 . Create a ` build ` hook in your [ app configuration] ( /create-apps/app-reference/single-runtime-image.md ) :
38
38
39
- ``` yaml {configfile ="app" dir="client" }
39
+ ``` yaml {configFile ="app" dir="client" }
40
40
hooks :
41
41
build : |
42
42
set -e
@@ -54,7 +54,7 @@ Create your `build` hook to install them all:
54
54
If other hooks fail, the deploy still happens.
55
55
2. Install your top-level dependencies inside this `build` hook :
56
56
57
- ` ` ` yaml {configfile ="app" dir="client"}
57
+ ` ` ` yaml {configFile ="app" dir="client"}
58
58
hooks:
59
59
build: |
60
60
set -e
@@ -71,7 +71,7 @@ Create your `build` hook to install them all:
71
71
In this case, the app root is `client`.
72
72
To run commands from a different directory, you need to change directories (relative to the app root) :
73
73
74
- ` ` ` yaml {configfile ="app" dir="client"}
74
+ ` ` ` yaml {configFile ="app" dir="client"}
75
75
hooks:
76
76
build: |
77
77
set -e
@@ -82,7 +82,7 @@ Create your `build` hook to install them all:
82
82
83
83
5. Install the dependencies for the testing script :
84
84
85
- ` ` ` yaml {configfile ="app" dir="client"}
85
+ ` ` ` yaml {configFile ="app" dir="client"}
86
86
hooks:
87
87
build: |
88
88
set -e
@@ -122,7 +122,7 @@ All of this configuration and preparation can be handled in a bash script.
122
122
Unlike in the `build` hook, in the `deploy` hook the system is generally read-only.
123
123
So create a mount where you can write the Drush configuration :
124
124
125
- ` ` ` yaml {configfile ="app" dir="api"}
125
+ ` ` ` yaml {configFile ="app" dir="api"}
126
126
mounts:
127
127
/.drush:
128
128
source: storage
@@ -131,7 +131,7 @@ All of this configuration and preparation can be handled in a bash script.
131
131
132
132
4. Add a `deploy` hook that runs the preparation script :
133
133
134
- ` ` ` yaml {configfile ="app" dir="api"}
134
+ ` ` ` yaml {configFile ="app" dir="api"}
135
135
hooks:
136
136
deploy: !include
137
137
type: string
@@ -159,7 +159,7 @@ So you don't have to rebuild Drupal but you still get fresh content.
159
159
1. Set a relationship for Next.js with Drupal.
160
160
This allows the Next.js app to make requests and receive data from the Drupal app.
161
161
162
- ` ` ` yaml {configfile ="app" dir="client"}
162
+ ` ` ` yaml {configFile ="app" dir="client"}
163
163
relationships:
164
164
api:
165
165
service: 'api'
@@ -170,7 +170,7 @@ So you don't have to rebuild Drupal but you still get fresh content.
170
170
Like the [`deploy` hook](#configure-drush-and-drupal), the `post_deploy` hook has a read-only file system.
171
171
Create mounts for your Next.js files :
172
172
173
- ` ` ` yaml {configfile ="app" dir="client"}
173
+ ` ` ` yaml {configFile ="app" dir="client"}
174
174
mounts:
175
175
/.cache:
176
176
source: local
@@ -189,7 +189,7 @@ So you don't have to rebuild Drupal but you still get fresh content.
189
189
190
190
3. Add a `post_deploy` hook that first tests the connection between the apps :
191
191
192
- ` ` ` yaml {configfile ="app" dir="client"}
192
+ ` ` ` yaml {configFile ="app" dir="client"}
193
193
hooks:
194
194
post_deploy: |
195
195
. deploy/platformsh.environment
@@ -200,7 +200,7 @@ So you don't have to rebuild Drupal but you still get fresh content.
200
200
201
201
4. Then build the Next.js site :
202
202
203
- ` ` ` yaml {configfile ="app" dir="client"}
203
+ ` ` ` yaml {configFile ="app" dir="client"}
204
204
hooks:
205
205
post_deploy: |
206
206
. deploy/platformsh.environment
@@ -220,7 +220,7 @@ The following shows only the parts necessary for the hooks.
220
220
221
221
# ## Drupal
222
222
223
- ` ` ` yaml {configfile ="app" dir="api"}
223
+ ` ` ` yaml {configFile ="app" dir="api"}
224
224
# The name of this app. Must be unique within the project.
225
225
name: 'drupal'
226
226
@@ -265,7 +265,7 @@ mounts:
265
265
266
266
# ## Next.js
267
267
268
- ` ` ` yaml {configfile ="app" dir="client"}
268
+ ` ` ` yaml {configFile ="app" dir="client"}
269
269
# The name of this app, which must be unique within the project.
270
270
name: 'nextjs'
271
271
0 commit comments