npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

edtool

v0.1.8

Published

edtool 是[Enhancer](https://wuyuan.io/) deploy tool, 即部署 Enhancer 应用的工具.

Downloads

28

Readme

edtool 是Enhancer deploy tool, 即部署 Enhancer 应用的工具.

1. 安装 edtool

npm install edtool -g

2. 使用方式

2.0 使用前的说明

如果开发环境的数据库等配置和部署环境不一样, 可以通过下面的命令来设置部署环境的配置

2.0.1 数据库配置

edtool config 项目ID db host user password database connection

// 比如项目ID是123, 且部署环境的数据库的host要配置成 127.0.0.1, database 要配置成 test
edtool config 123 db 127.0.0.01 / / test /

// 不需要修改的 就用 / 代替

2.0.2 系统配置

edtool config 项目ID system port externalUrlBase

// 比如项目ID是123, 线上部署环境的端口是 5301 且 外部访问地址是 http://www.xx.com
edtool config 123 system 5301 http://www.xx.com

2.0.3 redis配置

edtool config 项目ID redis host port user pass

// 比如项目ID是123, 线上部署环境的redis端口是 6379 
edtool config 123 redis / 6379 / /

2.1 登录(第一次使用时需要先登录)

edtool login

2.2 部署项目

下面的部署方式任选一种, 项目ID 和 发布编号 可以在 我的项目 的 详情信息 和 发布管理 里找到

2.2.1 部署项目ID为 123 且发布编号为最近一次发布的项目

edtool 123

2.2.2 部署项目ID为 123 且发布编号为 456的项目

edtool 123 456

2.2.3 部署已经下载好的 bodhi 包

// 将命令行终端切换到  bodhi 包所在目录
edtool ./bodhi-app-xxx.tar.gz

2.3 安装服务(仅 windows 用户可用)

下面的命令需要在项目根目录下执行

2.3.1 安装服务(安装后会默认启动项目)

edtool service install

2.3.2 卸载服务

edtool service uninstall

2.3.3 启动服务

edtool service start

2.3.3 停止服务

edtool service stop

其他说明

  • 项目会被部署到当前命令运行的目录下
  • 部署后 bodhi 包会被备份到 用户目录/wuyuan/backup/项目ID/bodhi-app-xxx.tar.gz
  • 如果存在 用户目录/wuyuan/项目ID/ 目录, 那么这个目录下的文件会被复制到当前部署的项目下, 并覆盖当对应的文件
  • 其他参数说明: -b 表示不备份 bodhi 包, -s 表示只下载 bodhi 包 不部署, -i 表示部署时不执行 npm install, -h 列出 edtool 支持的命令