mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
@@ -126,11 +126,11 @@ yarn # install NPM packages
|
|||||||
And than run following 3 commands concurrently in 3 terminals:
|
And than run following 3 commands concurrently in 3 terminals:
|
||||||
```
|
```
|
||||||
yarn start:api # run API on port 3000
|
yarn start:api # run API on port 3000
|
||||||
yarn start:web # run web on port 5000
|
yarn start:web # run web on port 5001
|
||||||
yarn lib # watch typescript libraries and plugins modifications
|
yarn lib # watch typescript libraries and plugins modifications
|
||||||
```
|
```
|
||||||
This runs API on port 3000 and web application on port 5000
|
This runs API on port 3000 and web application on port 5001
|
||||||
Open http://localhost:5000 in your browser
|
Open http://localhost:5001 in your browser
|
||||||
|
|
||||||
If you want to run electron app:
|
If you want to run electron app:
|
||||||
```sh
|
```sh
|
||||||
@@ -147,7 +147,7 @@ yarn start:app # run electron app
|
|||||||
```
|
```
|
||||||
|
|
||||||
## How to run built electron app locally
|
## How to run built electron app locally
|
||||||
This mode is very similar to production run of electron app. Electron doesn't use localhost:5000.
|
This mode is very similar to production run of electron app. Electron doesn't use localhost:5001.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd app
|
cd app
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "./",
|
"homepage": "./",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "cross-env ELECTRON_START_URL=http://localhost:5000 DEVMODE=1 electron .",
|
"start": "cross-env ELECTRON_START_URL=http://localhost:5001 DEVMODE=1 electron .",
|
||||||
"start:local": "cross-env electron .",
|
"start:local": "cross-env electron .",
|
||||||
"dist": "electron-builder",
|
"dist": "electron-builder",
|
||||||
"build": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && yarn dist",
|
"build": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && yarn dist",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"dev": "cross-env API_URL=http://localhost:3000 rollup -c -w",
|
"dev": "cross-env API_URL=http://localhost:3000 rollup -c -w",
|
||||||
"start": "sirv public",
|
"start": "sirv public --port 5001",
|
||||||
"validate": "svelte-check",
|
"validate": "svelte-check",
|
||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user