New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

magic-service

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-service

a simple startup project written in ts (based on gulu 2.0)

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

开发调试

可通过命令行快速启动开发服务器

$ npm run dev

 项目模板内置了 VSCode 的调试配置,如果需要断点调试,也可通过 VSCode 的启动器启动应用。

断点调试

服务发现切换

脚手架默认内置 BOE 环境的 ROUTE_IP,如需切换,需要修改 package.json 的启动脚本

可通过ROUTE_IP环境变量来切换不同的环境,ROUTE_IP=x.x.x.x的值为对应机房的 IP

例如GULU_ENV=dev ROUTE_IP=10.225.84.22 nodemon bootstrap.js其中10.225.84.22Boe实例的 IP,那么服务就会以BOE环境启动

如何获取 BOE 环境的 IP 地址
  • 使用devbox开发机的 IP (需在开发机中执行sudo /opt/tiger/consul_devbox/bin/switch.sh boe来把consul切换到 BOE)
  • 使用TCE BOE实例的 IP
如何获取 线上 环境的 IP 地址
  • 使用devbox开发机的 IP (需在开发机中执行sudo /opt/tiger/consul_devbox/bin/switch.sh langfang来把consul切换到 lf)
  • 使用线上TCE实例的 IP
设置 ROUTE_IP 无效

确认系统中是否存在以下环境变量,如果存在,需将对应环境变量删除,或修改为 ROUTE_IP 的值

  • CONSUL_HTTP_HOST
  • MY_HOST_IP
  • TCE_HOST_IP

FAQs

Package last updated on 28 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc