mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-11 08:46:16 +00:00
52 lines
963 B
Markdown
52 lines
963 B
Markdown
# Open StApps Monorepo
|
|
|
|
## Remote caching
|
|
|
|
Turbo supports remote caching, which massively speeds up build processes.
|
|
|
|
### Connecting to the remote cache locally
|
|
|
|
`.env.local`
|
|
```dotenv
|
|
TURBO_API=http://example:3000
|
|
TURBO_TEAM=openstapps
|
|
TURBO_TOKEN=abc123
|
|
```
|
|
|
|
### Connecting to the remote cache in GitLab Pipelines
|
|
|
|
You will need to define
|
|
* `TURBO_API`
|
|
* `TURBO_TEAM`
|
|
* `TURBO_TOKEN`
|
|
Like you did locally as described in [this](https://turbo.build/repo/docs/ci/gitlabci#remote-caching)
|
|
guide.
|
|
|
|
### Hosting a cache
|
|
|
|
Self-hosting via Docker is extremely simple, just follow
|
|
[this](http://v2202207178592194230.supersrv.de:6341) guide
|
|
or in short:
|
|
|
|
`.env`
|
|
```dotenv
|
|
PORT=...
|
|
TURBO_TOKEN=...
|
|
```
|
|
```shell
|
|
docker run --env-file=.env -p 3000:3000 fox1t/turborepo-remote-cache
|
|
```
|
|
|
|
## Useful commands
|
|
|
|
#### Why is this package bloating the app?
|
|
|
|
```shell
|
|
pnpm why -P -r --filter @openstapps/app PACKAGE
|
|
```
|
|
|
|
#### Licenses
|
|
|
|
```shell
|
|
pnpm licenses -P --filter PROJECT
|
|
``` |