https://github.com/tinywaves/tinup
A domain model-based rapid custom development scaffold.
https://github.com/tinywaves/tinup
tinup
Last synced: 5 months ago
JSON representation
A domain model-based rapid custom development scaffold.
- Host: GitHub
- URL: https://github.com/tinywaves/tinup
- Owner: tinywaves
- License: mit
- Created: 2021-04-29T11:55:36.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-25T13:16:04.000Z (5 months ago)
- Last Synced: 2025-08-25T15:17:17.847Z (5 months ago)
- Topics: tinup
- Language: TypeScript
- Homepage:
- Size: 197 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tinup
[English](./README.md) | [简体中文](./README.zh-CN.md)
## Environment Variable: mode Parameter Description
Tinup Core supports using the `mode` parameter to distinguish between different environment configurations.
### Usage
When starting the service, the corresponding environment file will be loaded according to the current mode. For example:
- When `mode=dev`, `.env.dev` will be loaded
- When `mode=prod`, `.env.prod` will be loaded
- If mode is not set, `.env` will be loaded
You can switch between environments by setting the environment variable or specifying mode in the code.
### Example
```bash
pnpm run dev --mode=xxx
```