mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-06 22:26:45 +00:00
enh: local dev setup
This commit is contained in:
parent
ad2e918a79
commit
80d3e531ac
@ -6,7 +6,7 @@ Just want to work with the UI and frontend?
|
|||||||
git clone git@github.com:benallfree/pockethost.git
|
git clone git@github.com:benallfree/pockethost.git
|
||||||
cd pockethost
|
cd pockethost
|
||||||
yarn
|
yarn
|
||||||
yarn dev:www
|
yarn local:dev:www
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it. You're in business. Your local Svelte build will talk to the `pockethost.io` mothership and connect to that for all database-related tasks.
|
That's it. You're in business. Your local Svelte build will talk to the `pockethost.io` mothership and connect to that for all database-related tasks.
|
||||||
|
@ -15,7 +15,7 @@ git clone git@github.com:benallfree/pockethost.git
|
|||||||
cd pockethost
|
cd pockethost
|
||||||
yarn
|
yarn
|
||||||
cp .env-template .env # modify as needed, if you used `pockethost.test` for your local domain, everything should work
|
cp .env-template .env # modify as needed, if you used `pockethost.test` for your local domain, everything should work
|
||||||
scripts/dev.sh
|
scripts/local-dev.sh
|
||||||
open https://pockethost.test
|
open https://pockethost.test
|
||||||
open https://pockethost-central.pockethost.test
|
open https://pockethost-central.pockethost.test
|
||||||
# login: admin@pockethost.test (change in .env)
|
# login: admin@pockethost.test (change in .env)
|
||||||
|
@ -10,17 +10,17 @@
|
|||||||
"build": "concurrently 'yarn:build:*'",
|
"build": "concurrently 'yarn:build:*'",
|
||||||
"build:www": "cd packages/pockethost.io && yarn build",
|
"build:www": "cd packages/pockethost.io && yarn build",
|
||||||
"build:daemon": "cd packages/daemon && yarn build",
|
"build:daemon": "cd packages/daemon && yarn build",
|
||||||
|
"local:dev": "NODE_ENV=development concurrently 'yarn:dev:*'",
|
||||||
|
"local:dev:proxy": "cd packages/proxy && yarn dev",
|
||||||
|
"local:dev:www": "cd packages/pockethost.io && yarn dev",
|
||||||
"dev": "NODE_ENV=development concurrently 'yarn:dev:*'",
|
"dev": "NODE_ENV=development concurrently 'yarn:dev:*'",
|
||||||
"dev:proxy": "cd packages/proxy && yarn dev",
|
"dev:proxy": "cd packages/proxy && yarn dev",
|
||||||
"dev:www": "cd packages/pockethost.io && yarn dev",
|
|
||||||
"dev:daemon": "cd packages/daemon && yarn dev",
|
"dev:daemon": "cd packages/daemon && yarn dev",
|
||||||
"start": "concurrently 'yarn:start:*'",
|
"start": "concurrently 'yarn:start:*'",
|
||||||
"start:proxy": "cd packages/proxy && yarn start",
|
"start:proxy": "cd packages/proxy && yarn start",
|
||||||
"start:www": "cd packages/pockethost.io && yarn start",
|
|
||||||
"start:daemon": "cd packages/daemon && yarn start",
|
"start:daemon": "cd packages/daemon && yarn start",
|
||||||
"pm2": "concurrently 'yarn:pm2:*'",
|
"pm2": "concurrently 'yarn:pm2:*'",
|
||||||
"pm2:proxy": "cd packages/proxy && yarn pm2",
|
"pm2:proxy": "cd packages/proxy && yarn pm2",
|
||||||
"pm2:www": "cd packages/pockethost.io && yarn pm2",
|
|
||||||
"pm2:daemon": "cd packages/daemon && yarn pm2",
|
"pm2:daemon": "cd packages/daemon && yarn pm2",
|
||||||
"postinstall": "patch-package",
|
"postinstall": "patch-package",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
@ -56,4 +56,4 @@
|
|||||||
"postinstall-postinstall": "^2.1.0",
|
"postinstall-postinstall": "^2.1.0",
|
||||||
"replace-in-file": "^7.0.1"
|
"replace-in-file": "^7.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
scripts/local-dev.sh
Executable file
11
scripts/local-dev.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -a
|
||||||
|
source .env
|
||||||
|
DEBUG=1
|
||||||
|
set +a
|
||||||
|
|
||||||
|
pm2 stop all
|
||||||
|
docker kill $(docker ps -q)
|
||||||
|
docker rm $(docker ps -a -q)
|
||||||
|
yarn local:dev
|
Loading…
x
Reference in New Issue
Block a user