You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/alpine/how-to/build-pipeline.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ When the first build is triggered, Zerops will
183
183
2. download your application code from your repository
184
184
3. run the prepare commands in the defined order
185
185
186
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
186
+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
187
187
188
188
:::note
189
189
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -216,7 +216,7 @@ zerops:
216
216
...
217
217
```
218
218
219
-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
219
+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
220
220
221
221
Before the build commands are triggered the build container contains:
222
222
@@ -526,6 +526,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
526
526
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
527
527
3. run the `prepareCommands` commands in the defined order
528
528
529
+
:::note
530
+
`run.prepareCommands`run in the `/home/zerops` directory.
531
+
:::
532
+
529
533
#### Command exit code
530
534
531
535
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/alpine/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -598,6 +602,10 @@ zerops:
598
602
599
603
These commands are triggered in the runtime container before your Alpine application is started via the [start command](#start).
600
604
605
+
:::note
606
+
`run.initCommands`run in the `/var/www` directory.
607
+
:::
608
+
601
609
Use init commands to clean or initialise your application cache or similar operations.
To install additional packages or tools, add one or more <VarLinkname="servicePath"path="/{{VAR}}/how-to/build-pipeline#preparecommands">build.prepareCommands</VarLink> to your `zerops.yaml`.
59
59
60
60
:::info
61
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
61
+
The application code is available in the `/build/source` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
Copy file name to clipboardExpand all lines: apps/docs/content/bun/how-to/build-pipeline.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ When the first build is triggered, Zerops will
219
219
2. download your application code from your repository
220
220
3. run the prepare commands in the defined order
221
221
222
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
222
+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
223
223
224
224
:::note
225
225
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -253,7 +253,7 @@ zerops:
253
253
...
254
254
```
255
255
256
-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
256
+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
257
257
258
258
Before the build commands are triggered the build container contains:
259
259
@@ -572,6 +572,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
572
572
2. optionally: [copy selected folders or files from your build container](build-pipeline#copy-folders-or-files-from-your-build-container)
573
573
3. run the `prepareCommands` commands in the defined order
574
574
575
+
:::note
576
+
`run.prepareCommands`run in the `/home/zerops` directory.
577
+
:::
578
+
575
579
#### Command exit code
576
580
577
581
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -645,6 +649,10 @@ zerops:
645
649
646
650
These commands are triggered in the runtime container before your Bun application is started via the [start command](build-pipeline#start).
647
651
652
+
:::note
653
+
`run.initCommands`run in the `/var/www` directory.
654
+
:::
655
+
648
656
Use init commands to clean or initialise your application cache or similar operations.
Copy file name to clipboardExpand all lines: apps/docs/content/deno/how-to/build-pipeline.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,7 @@ When the first build is triggered, Zerops will
214
214
2. download your application code from your repository
215
215
3. run the prepare commands in the defined order
216
216
217
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
217
+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
218
218
219
219
:::note
220
220
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -247,7 +247,7 @@ zerops:
247
247
...
248
248
```
249
249
250
-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
250
+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
251
251
252
252
Before the build commands are triggered the build container contains:
253
253
@@ -565,6 +565,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
565
565
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
566
566
3. run the `prepareCommands` commands in the defined order
567
567
568
+
:::note
569
+
`run.prepareCommands`run in the `/home/zerops` directory.
570
+
:::
571
+
568
572
#### Command exit code
569
573
570
574
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/deno/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -638,6 +642,10 @@ zerops:
638
642
639
643
These commands are triggered in the runtime container before your Deno application is started via the [start command](#start).
640
644
645
+
:::note
646
+
`run.initCommands`run in the `/var/www` directory.
647
+
:::
648
+
641
649
Use init commands to clean or initialise your application cache or similar operations.
Copy file name to clipboardExpand all lines: apps/docs/content/deno/how-to/build-process.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ The default Deno build environment contains:
47
47
To install additional packages or tools, add one or more [build.prepareCommands](/deno/how-to/build-pipeline#preparecommands) to your `zerops.yaml`.
48
48
49
49
:::info
50
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
50
+
The application code is available in the `/build/source` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
Copy file name to clipboardExpand all lines: apps/docs/content/dotnet/how-to/build-pipeline.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,7 @@ When the first build is triggered, Zerops will
218
218
2. download your application code from your repository
219
219
3. run the prepare commands in the defined order
220
220
221
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
221
+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
222
222
223
223
:::note
224
224
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -251,7 +251,7 @@ zerops:
251
251
...
252
252
```
253
253
254
-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
254
+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
255
255
256
256
Before the build commands are triggered the build container contains:
257
257
@@ -585,6 +585,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
585
585
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
586
586
3. run the `prepareCommands` commands in the defined order
587
587
588
+
:::note
589
+
`run.prepareCommands`run in the `/home/zerops` directory.
590
+
:::
591
+
588
592
#### Command exit code
589
593
590
594
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/dotnet/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -660,6 +664,10 @@ zerops:
660
664
661
665
These commands are triggered in the runtime container before your .NET application is started via the [start command](#start).
662
666
667
+
:::note
668
+
`run.initCommands`run in the `/var/www` directory.
669
+
:::
670
+
663
671
Use init commands to clean or initialise your application cache or similar operations.
Copy file name to clipboardExpand all lines: apps/docs/content/elixir/how-to/build-pipeline.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,7 @@ When the first build is triggered, Zerops will
215
215
2. download your application code from your repository
216
216
3. run the prepare commands in the defined order
217
217
218
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
218
+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
219
219
220
220
:::note
221
221
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -249,7 +249,7 @@ zerops:
249
249
...
250
250
```
251
251
252
-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
252
+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
253
253
254
254
Before the build commands are triggered the build container contains:
255
255
@@ -568,6 +568,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
568
568
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
569
569
3. run the `prepareCommands` commands in the defined order
570
570
571
+
:::note
572
+
`run.prepareCommands`run in the `/home/zerops` directory.
573
+
:::
574
+
571
575
#### Command exit code
572
576
573
577
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/elixir/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -641,6 +645,10 @@ zerops:
641
645
642
646
These commands are triggered in the runtime container before your Elixir application is started via the [start command](#start).
643
647
648
+
:::note
649
+
`run.initCommands`run in the `/var/www` directory.
650
+
:::
651
+
644
652
Use init commands to clean or initialise your application cache or similar operations.
Copy file name to clipboardExpand all lines: apps/docs/content/gleam/how-to/build-pipeline.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,7 +216,7 @@ When the first build is triggered, Zerops will
216
216
2. download your application code from your repository
217
217
3. run the prepare commands in the defined order
218
218
219
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
219
+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
220
220
221
221
:::note
222
222
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -250,7 +250,7 @@ zerops:
250
250
...
251
251
```
252
252
253
-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
253
+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
254
254
255
255
Before the build commands are triggered the build container contains:
256
256
@@ -569,6 +569,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
569
569
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
570
570
3. run the `prepareCommands` commands in the defined order
571
571
572
+
:::note
573
+
`run.prepareCommands`run in the `/home/zerops` directory.
574
+
:::
575
+
572
576
#### Command exit code
573
577
574
578
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/gleam/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -642,6 +646,10 @@ zerops:
642
646
643
647
These commands are triggered in the runtime container before your Gleam application is started via the [start command](#start).
644
648
649
+
:::note
650
+
`run.initCommands`run in the `/var/www` directory.
651
+
:::
652
+
645
653
Use init commands to clean or initialise your application cache or similar operations.
Copy file name to clipboardExpand all lines: apps/docs/content/go/how-to/build-pipeline.mdx
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ When the first build is triggered, Zerops will
212
212
2. download your application code from your repository
213
213
3. run the prepare commands in the defined order
214
214
215
-
The application code is available in the `/var/www` folder in your build container before the prepare commands are triggered. This allows you to use any file from your application code in your prepare commands (e.g. a configuration file).
215
+
The application code is available in `/build/source` before the prepare commands are triggered, so you can use any file from your repository in your prepare commands (e.g. a configuration file). The commands themselves run in the `/home/zerops` directory.
216
216
217
217
:::note
218
218
These commands are skipped when using cached environment. Modifying `prepareCommands` will invalidate your build cache. See our [Build Cache Documentation](/features/build-cache) for details about cache invalidation.
@@ -245,7 +245,7 @@ zerops:
245
245
...
246
246
```
247
247
248
-
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container.
248
+
Build commands are optional. Zerops triggers each command in the defined order in a dedicated build container, running from the `/build/source` directory.
249
249
250
250
Before the build commands are triggered the build container contains:
251
251
@@ -579,6 +579,10 @@ When the first deploy with a defined prepare attribute is triggered, Zerops will
579
579
2. optionally: [copy selected folders or files from your build container](#copy-folders-or-files-from-your-build-container)
580
580
3. run the `prepareCommands` commands in the defined order
581
581
582
+
:::note
583
+
`run.prepareCommands`run in the `/home/zerops` directory.
584
+
:::
585
+
582
586
#### Command exit code
583
587
584
588
If any command fails, it returns an exit code other than 0 and the deploy is canceled. Read the [prepare runtime log](/go/how-to/logs#prepare-runtime-log) to troubleshoot the error. If the command ends successfully, it returns the exit code 0 and Zerops triggers the following command. When all `prepareCommands` commands are finished, your custom runtime environment is ready for the deploy phase.
@@ -652,6 +656,10 @@ zerops:
652
656
653
657
These commands are triggered in the runtime container before your Go application is started via the [start command](#start).
654
658
659
+
:::note
660
+
`run.initCommands`run in the `/var/www` directory.
661
+
:::
662
+
655
663
Use init commands to clean or initialise your application cache or similar operations.
0 commit comments