Skip to content

Commit 105029e

Browse files
Merge branch 'main' into 4287-clarify-how-resources-work-on-upsun
2 parents 7557b99 + d92c8d7 commit 105029e

File tree

26 files changed

+245
-120
lines changed

26 files changed

+245
-120
lines changed

.github/workflows/scheduled-check-links.yaml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,49 @@ jobs:
7474
run: |
7575
echo "::notice::No broken links were detected"
7676
77-
- name: Create issue from Markdown file
77+
- name: check message size
78+
id: check-msg-size
79+
if: ${{ steps.run-link-checker.outcome == 'failure' }}
80+
run: |
81+
artifact="false"
82+
sizeOfMessage=$(cat broken_links.md | wc -c)
83+
# the size of a comment in an issue is 65536
84+
if [ "${sizeOfMessage}" -gt 650000 ]; then
85+
# we'll need to store the broken_links.md file as an aritifact
86+
artifact="true"
87+
fi
88+
89+
echo "artifact=${artifact}" >> $GITHUB_ENV
90+
91+
- name: Upload artifact if applicable
92+
id: upload-artifact
93+
if: ${{ steps.run-link-checker.outcome == 'failure' && env.artifact == 'true' }}
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: broken-links
97+
path: |
98+
${{ github.action_path }}/broken_links.md
99+
100+
- name: Create issue
78101
id: create-issue
79102
if: ${{ steps.run-link-checker.outcome == 'failure' }}
103+
env:
104+
ARTIFACT: ${{ env.artifact }}
80105
uses: actions/github-script@v6
81106
with:
82107
script: |
108+
const { ARTIFACT } = process.env
83109
var fs = require('fs');
84-
var bodyMsg = fs.readFileSync('broken_links.md','utf8');
110+
//
85111
failMsg = ':bug: Broken links detected'
86112
113+
if ('true' == ARTIFACT) {
114+
address = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}#artifacts`
115+
var bodyMsg = `Visual Regression Testing failed. Please view the report artifact at ${address}`
116+
} else {
117+
var bodyMsg = fs.readFileSync('broken_links.md','utf8');
118+
}
119+
87120
github.rest.issues.create({
88121
owner: context.repo.owner,
89122
repo: context.repo.repo,

sites/platform/src/add-services/postgresql.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,18 @@ Taking a backup or a database export before doing so is strongly recommended.
365365
To ensure people who review code changes can't access personally identifiable information stored in your database,
366366
[sanitize your preview environments](../development/sanitize-db/postgresql.md).
367367

368+
## Set locale for database
369+
370+
You can choose your locale when a database is created by setting locale-related variables. There are three ways to set a locale option, as detailed in the table below:
371+
372+
373+
| Name | Type | Default | Description |
374+
|--------|-----------|----------|--------------|
375+
| `default_ctype` | `string` | `C.UTF-8` | The default character classification. Affects any tables created after it's set.|
376+
| `default_collation` | `string`|`C.UTF-8`| The default collation rules. Affects any tables created after it's set.|
377+
| `default_charset` | `string` | `UTF8` | The default encoding character set. Affects any tables created after it's set.|
378+
379+
368380
## Multiple databases
369381

370382
If you are using version `10`, `11`, `12`, `13`, or later of this service,

sites/platform/src/create-apps/app-reference/composable-image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,13 +810,13 @@ The following table presents possible properties for each location:
810810

811811
| Name | Type | Default | Description |
812812
|---------------------|------------------------------------------------------|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
813-
| `root` | `string` | | The directory to serve static assets for this location relative to the app's root directory ([see `source.root`](#source)). Must be an actual directory inside the root directory. |
813+
| `root` | `string` | | The directory to serve static assets for this location relative to the app's root directory ([see `source.root`](#source)). Must be an actual directory inside the root directory. |
814814
| `passthru` | `boolean` or `string` | `false` | Whether to forward disallowed and missing resources from this location to the app. A string is a path with a leading `/` to the controller, such as `/index.php`. <BR> <BR> If your app is in PHP, when setting `passthru` to `true`, you might want to set `scripts` to `false` for enhanced security. This prevents PHP scripts from being executed from the specified location. You might also want to set `allow` to `false` so that not only PHP scripts can't be executed, but their source code also can't be delivered. |
815815
| `index` | Array of `string`s or `null` | | Files to consider when serving a request for a directory. When set, requires access to the files through the `allow` or `rules` keys. |
816816
| `expires` | `string` | `-1` | How long static assets are cached. The default means no caching. Setting it to a value enables the `Cache-Control` and `Expires` headers. Times can be suffixed with `ms` = milliseconds, `s` = seconds, `m` = minutes, `h` = hours, `d` = days, `w` = weeks, `M` = months/30d, or `y` = years/365d. |
817817
| `allow` | `boolean` | `true` | Whether to allow serving files which don't match a rule. |
818818
| `scripts` | `boolean` | | Whether to allow scripts to run. Doesn't apply to paths specified in `passthru`. Meaningful only on PHP containers. |
819-
| `headers` | A headers dictionary | | Any additional headers to apply to static assets, mapping header names to values. Responses from the app aren't affected. |
819+
| `headers` | A headers dictionary | | Any additional headers to apply to static assets, mapping header names to values (see [Set custom headers on static content](/create-apps/web/custom-headers.html)). Responses from the app aren't affected. |
820820
| `request_buffering` | A [request buffering dictionary](#request-buffering) | See below | Handling for chunked requests. |
821821
| `rules` | A [rules dictionary](#rules) | | Specific overrides for specific locations. |
822822

sites/platform/src/create-apps/app-reference/single-runtime-image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,10 @@ The following table presents possible properties for each location:
633633
| `root` | `string` | | The directory to serve static assets for this location relative to the [app's root directory](#root-directory). Must be an actual directory inside the root directory. |
634634
| `passthru` | `boolean` or `string` | `false` | Whether to forward disallowed and missing resources from this location to the app. A string is a path with a leading `/` to the controller, such as `/index.php`. <BR> <BR> If your app is in PHP, when setting `passthru` to `true`, you might want to set `scripts` to `false` for enhanced security. This prevents PHP scripts from being executed from the specified location. You might also want to set `allow` to `false` so that not only PHP scripts can't be executed, but their source code also can't be delivered. |
635635
| `index` | Array of `string`s or `null` | | Files to consider when serving a request for a directory. When set, requires access to the files through the `allow` or `rules` keys. |
636-
| `expires` | `string` | `-1` | How long static assets are cached. The default means no caching. Setting it to a value enables the `Cache-Control` and `Expires` headers. Times can be suffixed with `ms` = milliseconds, `s` = seconds, `m` = minutes, `h` = hours, `d` = days, `w` = weeks, `M` = months/30d, or `y` = years/365d. If a `Cache-Control` appears on the `headers` configuration, `expires`, if set, will be ignored. Thus, make sure to set the `Cache-Control`'s `max-age` value when specifying a the header. |
636+
| `expires` | `string` | `-1` | How long static assets are cached. The default means no caching. Setting it to a value enables the `Cache-Control` and `Expires` headers. Times can be suffixed with `ms` = milliseconds, `s` = seconds, `m` = minutes, `h` = hours, `d` = days, `w` = weeks, `M` = months/30d, or `y` = years/365d. If a `Cache-Control` appears on the `headers` configuration, `expires`, if set, will be ignored. Thus, make sure to set the `Cache-Control`'s `max-age` value when specifying a the header. |
637637
| `allow` | `boolean` | `true` | Whether to allow serving files which don't match a rule. |
638638
| `scripts` | `boolean` | | Whether to allow scripts to run. Doesn't apply to paths specified in `passthru`. Meaningful only on PHP containers. |
639-
| `headers` | A headers dictionary | | Any additional headers to apply to static assets, mapping header names to values. Responses from the app aren't affected. |
639+
| `headers` | A headers dictionary | | Any additional headers to apply to static assets, mapping header names to values (see [Set custom headers on static content](/create-apps/web/custom-headers.html)). Responses from the app aren't affected. |
640640
| `request_buffering` | A [request buffering dictionary](#request-buffering) | See below | Handling for chunked requests. |
641641
| `rules` | A [rules dictionary](#rules) | | Specific overrides for specific locations. |
642642

0 commit comments

Comments
 (0)