@rpcbase/cli 0.42.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/cli",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "license": "SSPL-1.0",
5
5
  "bin": {
6
6
  "rb": "./bin.js"
@@ -31,9 +31,8 @@ const start = (run_configs) => {
31
31
 
32
32
  const {server_port, wss_port} = get_port(run_configs)
33
33
  try {
34
- execSync(`${TAILSCALE_PATH} serve --bg --set-path /wss --https=${wss_port} http://127.0.0.1:${wss_port}`, {stdio: "inherit"})
35
- execSync(`${TAILSCALE_PATH} serve --bg --set-path / --https=443 http://127.0.0.1:${server_port}`, {stdio: "inherit"})
36
- // execSync(`${TAILSCALE_PATH} funnel 443 on`, {stdio: "inherit"})
34
+ execSync(`${TAILSCALE_PATH} funnel --bg --set-path /wss --https=${wss_port} http://127.0.0.1:${wss_port}`, {stdio: "inherit"})
35
+ execSync(`${TAILSCALE_PATH} funnel --bg --set-path / --https=443 http://127.0.0.1:${server_port}`, {stdio: "inherit"})
37
36
  } catch (err) {
38
37
  console.log("error starting tailscale, is the tailscale app running ?")
39
38
  }
@@ -45,9 +44,8 @@ const stop = (run_configs) => {
45
44
 
46
45
  const {server_port, wss_port} = get_port(run_configs)
47
46
  try {
48
- execSync(`${TAILSCALE_PATH} serve --https=${wss_port} off`, {stdio: "inherit"})
49
- execSync(`${TAILSCALE_PATH} serve --https=443 off`, {stdio: "inherit"})
50
- // execSync(`${TAILSCALE_PATH} funnel 443 off`, {stdio: "inherit"})
47
+ execSync(`${TAILSCALE_PATH} funnel --https=${wss_port} off`, {stdio: "inherit"})
48
+ execSync(`${TAILSCALE_PATH} funnel --https=443 off`, {stdio: "inherit"})
51
49
  } catch (err) {
52
50
  // console.log("TAILSCALE ERR", err)
53
51
  console.log("error stopping tailscale, it probably wasn't initally running. you can probably ignore it")
@@ -30,9 +30,9 @@ const SERVICES = [
30
30
  name: "database",
31
31
  required_env: {
32
32
  "DATABASE_PORT": validate_port,
33
- "DATABASE_NAME": (val) => {
33
+ "RB_APP_NAME": (val) => {
34
34
  if (!/^[$A-Z_][0-9A-Z_$-]*$/i.test(val)) {
35
- return `expected ${colors.bold(`'${val}'`)} to be a valid database name`
35
+ return `expected ${colors.bold(`'${val}'`)} to be a valid app name`
36
36
  }
37
37
  }
38
38
  },