Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We should live in the current decade Always. #4461

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sites/upsun/src/administration/cli/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ upsun activity:list --exclude-type '*.cron,*.backup*'

* List pushes made before 15 March:
```
upsun activity:list --type push --start 2015-03-15
upsun activity:list --type push --start 2025-03-15
```

* List up to 25 incomplete activities:
Expand Down
2 changes: 1 addition & 1 deletion sites/upsun/src/create-apps/hooks/hooks-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ the execution of the `deploy` hook is logged in the [deploy log](../../increase-
For example:

```bash
[2022-03-01 08:27:25.495579] Launching command 'bash export-config.sh'.
[2025-03-01 08:27:25.495579] Launching command 'bash export-config.sh'.

🔥 Successfully cleared configuration
🚀 Added new configuration details
Expand Down
2 changes: 1 addition & 1 deletion sites/upsun/src/create-apps/multi-app/project-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Once your repository is organized, you can use a configuration similar to the fo
```yaml {configFile="apps"}
applications:
api:
type: php:8.2
type: {{% latest "php" %}}

relationships:
database:
Expand Down
2 changes: 1 addition & 1 deletion sites/upsun/src/development/variables/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ DATABASE_SCHEME=pgsql
DATABASE_EPOCH=0
DATABASE_PORT=5432
DATABASE_HOSTNAME=azertyuiop1234567890.database.service._.eu-3.platformsh.site
DATABASE_TYPE=postgresql:13
DATABASE_TYPE={{% latest "postgresql" %}}
DATABASE_PUBLIC=false
DATABASE_PASSWORD=main
DATABASE_IP=123.456.78.901
Expand Down
6 changes: 3 additions & 3 deletions sites/upsun/src/environments/restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Backups on the project My Project (1234567abcdef), environment main (type: produ
+---------------------------+----------------------------+------------+
| Created | Backup ID | Restorable |
+---------------------------+----------------------------+------------+
| 2022-08-15T09:48:58+01:00 | 5ouvtgo4v75axijww7sqnftste | true |
| 2022-07-09T14:17:17+01:00 | 7jks7dru5xpx5p5id5wtypur2y | true |
| 2022-06-22T18:33:29+01:00 | f3jbyxlhtmalco67fmfoxs7n4m | true |
| 2024-08-15T09:48:58+01:00 | 5ouvtgo4v75axijww7sqnftste | true |
| 2024-07-09T14:17:17+01:00 | 7jks7dru5xpx5p5id5wtypur2y | true |
| 2024-06-22T18:33:29+01:00 | f3jbyxlhtmalco67fmfoxs7n4m | true |
+---------------------------+----------------------------+------------+
```

Expand Down
2 changes: 1 addition & 1 deletion sites/upsun/src/get-started/here/configure/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ With your deployment finished, you may have noticed that the resources allocated
```bash
Opening environment
Environment configuration
app (type: php:8.2, cpu: 0.5, memory: 224, disk: 512)
app (type: {{% latest "php" %}}, cpu: 0.5, memory: 224, disk: 512)
db (type: mariadb:12.4, cpu: 0.5, memory: 1408, disk: 512)
memcached (type: memcached:1.6, cpu: 0.5, memory: 1088)
```
Expand Down
6 changes: 3 additions & 3 deletions sites/upsun/src/get-started/here/configure/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ applications:
sharp: "*"
#services:
# db:
# type: postgresql:15
# type: postgresql:{{% latest "postgresql" %}}
routes:
"https://{default}/":
type: upstream
Expand Down Expand Up @@ -88,7 +88,7 @@ applications:
sharp: "*"
#services:
# db:
# type: postgresql:14
# type: postgresql:{{% latest "postgresql" %}}
routes:
"https://{default}/":
type: upstream
Expand Down Expand Up @@ -131,7 +131,7 @@ applications:
yarn build
services:
postgresql:
type: postgresql:15
type: postgresql:{{% latest "postgresql" %}}

routes:
"https://{default}/":
Expand Down
2 changes: 1 addition & 1 deletion sites/upsun/src/get-started/stacks/drupal.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Open the `.upsun/config.yaml` file that's been generated and replace with the fo
```yaml {filename=".upsun/config.yaml"}
applications:
drupal:
type: "php:8.3"
type: "{{% latest "php" %}}"
relationships:
mariadb: 'db:mysql'
redis: 'cache:redis'
Expand Down
2 changes: 1 addition & 1 deletion sites/upsun/src/get-started/stacks/express/add-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ You can get your project's relationship information using the following command:
is_master: true
path: main
password: ''
type: 'mariadb:10.6'
type: 'mariadb:{{< latest "mariadb" >}}'
port: 3306
host_mapped: false
url: 'mysql://user:@mariadb.internal:3306/main'
Expand Down
6 changes: 3 additions & 3 deletions sites/upsun/src/get-started/stacks/laravel/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ They likely contain an error message describing the root cause:

```bash
{{% vendor/cli %}} logs all
[app] [14-Aug-2020 10:52:27 UTC] [critical] Uncaught PHP Exception Exception: [...]
[app] [14-Aug-2024 10:52:27 UTC] [critical] Uncaught PHP Exception Exception: [...]
[app]
[php.access] 2020-08-14T10:52:27Z GET 500 2.386 ms 2048 kB 419.11% /
[access] 78.247.136.119 - - [14/Aug/2020:10:52:27 +0000] "GET / HTTP/1.1" 500 843 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36"
[php.access] 2024-08-14T10:52:27Z GET 500 2.386 ms 2048 kB 419.11% /
[access] 78.247.136.119 - - [14/Aug/2024:10:52:27 +0000] "GET / HTTP/1.1" 500 843 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36"
```

If the error occurs on a preview environment,
Expand Down
6 changes: 3 additions & 3 deletions sites/upsun/src/get-started/stacks/magento.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The example also features an [Upsun config.yaml](https://github.com/platformsh-t
applications:
app:
# The runtime the application uses.
type: php:8.3
type: {{% latest "php" %}}
# Specify additional PHP extensions that should be loaded.
runtime:
extensions:
Expand Down Expand Up @@ -141,15 +141,15 @@ Below is a **shortened example** of what your log would look like:
Setting 'queue' resources to 0.1 CPU, 448MB RAM.
Setting 'queue' disk to 256MB.

Building application 'app' (runtime type: php:8.3, tree: 392d8f3)
Building application 'app' (runtime type: {{% latest "php" %}}, tree: 392d8f3)
Generating runtime configuration.

Installing build dependencies...

...

Environment configuration
app (type: php:8.3, cpu: 0.1, memory: 64, disk: 1024)
app (type: {{% latest "php" %}}, cpu: 0.1, memory: 64, disk: 1024)
db (type: mariadb:10.6, cpu: 0.1, memory: 448, disk: 256)
cache (type: redis:7.2, cpu: 0.1, memory: 352)
session (type: redis-persistent:7.2, cpu: 0.1, memory: 352, disk: 256)
Expand Down
6 changes: 3 additions & 3 deletions sites/upsun/src/get-started/stacks/symfony/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ They likely contain an error message describing the root cause:

```bash
symfony logs all
[app] [14-Aug-2020 10:52:27 UTC] [critical] Uncaught PHP Exception Exception: [...]
[app] [14-Aug-2024 10:52:27 UTC] [critical] Uncaught PHP Exception Exception: [...]
[app]
[php.access] 2020-08-14T10:52:27Z GET 500 2.386 ms 2048 kB 419.11% /
[access] 78.247.136.119 - - [14/Aug/2020:10:52:27 +0000] "GET / HTTP/1.1" 500 843 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36"
[php.access] 2024-08-14T10:52:27Z GET 500 2.386 ms 2048 kB 419.11% /
[access] 78.247.136.119 - - [14/Aug/2024:10:52:27 +0000] "GET / HTTP/1.1" 500 843 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36"
```

If the error occurs on a preview environment,
Expand Down
12 changes: 6 additions & 6 deletions sites/upsun/src/get-started/stacks/wordpress/bedrock.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
<snip>
web:
locations:
Expand Down Expand Up @@ -88,7 +88,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
<snip>
mounts:
"web/app/wp-content/cache":
Expand All @@ -111,7 +111,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
...
hooks:
build: |
Expand All @@ -138,7 +138,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
...
hooks:
deploy: |
Expand All @@ -160,7 +160,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
<snip>
dependencies:
php:
Expand All @@ -177,7 +177,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
...

routes:
Expand Down
14 changes: 7 additions & 7 deletions sites/upsun/src/get-started/stacks/wordpress/composer.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
web:
locations:
"/":
Expand Down Expand Up @@ -102,7 +102,7 @@ To set one up, follow these steps:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
web:
locations:
"/":
Expand Down Expand Up @@ -135,7 +135,7 @@ To set one up, follow these steps:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
...
mounts:
"wordpress/wp-content/uploads":
Expand All @@ -159,7 +159,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
...
hooks:
build: |
Expand Down Expand Up @@ -193,7 +193,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
...
hooks:
deploy: |
Expand All @@ -218,7 +218,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
...

routes:
Expand Down Expand Up @@ -246,7 +246,7 @@ applications:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
# ...
relationships:
database: "mariadb:mysql"
Expand Down
10 changes: 5 additions & 5 deletions sites/upsun/src/get-started/stacks/wordpress/vanilla.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ download a zip archive from WordPress.org, or use `curl` to download a tarball:
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
web:
locations:
"/":
Expand Down Expand Up @@ -123,7 +123,7 @@ If you changed the name of the directory at step 1.4 you'll need to update the `
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
<snip>
mounts:
"wordpress/wp-content/uploads":
Expand All @@ -146,7 +146,7 @@ If you changed the name of the directory at step 1.4 you'll need to update the `
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
<snip>
hooks:
deploy: |
Expand All @@ -166,7 +166,7 @@ If you changed the name of the directory at step 1.4 you'll need to update the `
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
...

routes:
Expand All @@ -188,7 +188,7 @@ If you changed the name of the directory at step 1.4 you'll need to update the `
myapp:
source:
root: "/"
type: 'php:8.3'
type: '{{% latest "php" %}}'
<snip>
dependencies:
php:
Expand Down
4 changes: 2 additions & 2 deletions sites/upsun/src/integrations/activity/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ An example of this object is below:
},
"timezone": "Europe/Dublin",
"title": "Activity script examples",
"updated_at": "2020-04-21T17:15:35.526498+00:00"
"updated_at": "2024-04-21T17:15:35.526498+00:00"
}
```

Expand Down Expand Up @@ -362,7 +362,7 @@ function HMAC(key, value) {
return h.digest();
}
var kSecret = "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY";
HMAC(HMAC(HMAC(HMAC("AWS4" + kSecret,"20150830"),"us-east-1"),"iam"),"aws4_request");
HMAC(HMAC(HMAC(HMAC("AWS4" + kSecret,"20250830"),"us-east-1"),"iam"),"aws4_request");
```

> Example taken from the [AWS documentation for signing API requests](https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html).
Loading
Loading