Skip to content

Commit 7b8744f

Browse files
committed
docs: upgrading
1 parent b8f0cd3 commit 7b8744f

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default defineConfig({
2525
{ text: 'Project Structure', link: '/project-structure' },
2626
{ text: 'Core Concepts', link: '/core-concepts' },
2727
{ text: 'Configuration', link: '/configuration' },
28+
{ text: 'Upgrading', link: '/upgrading' },
2829
]
2930
},
3031
{

upgrading.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Upgrading Stochastix
2+
3+
To ensure you benefit from the latest features, performance improvements, and bug fixes, it's important to keep both the framework code and your development environment up-to-date. This guide outlines the recommended procedures for upgrading.
4+
5+
## Upgrading the Framework (Core Logic)
6+
7+
This process updates the `stochastix/core` package and its related PHP dependencies to the latest versions defined in your `composer.json` file.
8+
9+
The recommended way to do this is by using the provided `Makefile` shortcut, which executes the command within the running Docker container.
10+
11+
```bash
12+
# Updates composer dependencies
13+
make update
14+
```
15+
16+
:::warning Breaking Changes
17+
Stochastix is still in development, and while we strive to maintain backward compatibility, there may be breaking changes in future development releases, until we reach a stable version.
18+
:::
19+
20+
## Upgrading the Docker Environment
21+
22+
Your Docker environment consists of the base PHP image, system-level dependencies, and any pre-built UI assets. These do not get updated by `composer update`.
23+
24+
To get the latest Docker environment, you need to pull the latest image and recreate the containers.
25+
26+
```bash
27+
# Pull the latest Docker image for Stochastix
28+
docker pull ghcr.io/phpquant/stochastix:latest
29+
30+
# Recreate the containers with the latest image
31+
make up
32+
```
33+
34+
Following these steps will ensure that your entire Stochastix stack—from the underlying PHP version to the latest framework code—is fully up-to-date.

0 commit comments

Comments
 (0)