Run Budibase Dev Server from top level, server side watch mode (#64)

* better dev command

* update readme
This commit is contained in:
Martin McKeaveney 2020-01-28 09:11:08 +00:00 committed by Michael Shanks
parent ed3caec114
commit bc6f671668
2 changed files with 8 additions and 4 deletions

View File

@ -9,6 +9,7 @@
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",
"build": "lerna run build", "build": "lerna run build",
"initialise": "lerna run initialise", "initialise": "lerna run initialise",
"clean": "lerna clean" "clean": "lerna clean",
"dev": "lerna run --parallel --stream dev:builder"
} }
} }

View File

@ -73,9 +73,12 @@ if you then want to run the builder in dev mode (i.e. with hot reloading):
... keep the server running, and.. ... keep the server running, and..
1. Open a new console 1. Open a new console
2. `cd packages/builder` 2. `yarn dev`
3. `yarn start` 3. Access the builder on http://localhost:3000
4. Access the builder on http://localhost:3000
This will enable watch mode for both the client AND the server.
### Running Commands from /server Directory
Notice that when inside `packages/server`, you can use any Budibase CLI command via yarn: Notice that when inside `packages/server`, you can use any Budibase CLI command via yarn: