Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

docs: add instruction for air command open file limit error (#125)

spinningbot299abbcc6ffb
diff --git a/README.md b/README.md
index 6749446912..05d4672b62 100644
--- a/README.md
+++ b/README.md
@@ -121,15 +121,15 @@ working on the code:
### Steps
-1. Install [Air](https://github.com/cosmtrek/air#installation)
+1. Install [Air](https://github.com/cosmtrek/air#installation).
-1. Pull source
+1. Pull source.
```bash
git clone https://github.com/bytebase/bytebase
```
-1. Set up pre-commit hooks
+1. Set up pre-commit hooks.
- Install [pre-commit](https://pre-commit.com/index.html#install)
@@ -139,13 +139,18 @@ working on the code:
pre-commit install --hook-type commit-msg
```
-1. Start backend using air (with live reload)
+1. Start backend using air (with live reload).
```bash
air -c scripts/.air.toml
```
-1. Start frontend (with live reload)
+ Change the open file limit if you encounter "error: too many open files".
+ ```
+ ulimit -n 10240
+ ```
+
+1. Start frontend (with live reload).
```bash
cd frontend && yarn && yarn dev