Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

egg hot-reload tool with nginx. eggjs 热部署工具

NotificationsYou must be signed in to change notification settings

airyland/egg-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

yarn add egg-deploy --dev

Usage

  • createnginx.conf with upstream block, example:
upstream nginxconf {}server {    listen 443;    ssl on;    ssl_certificate*.fullchain.cer;    ssl_certificate_key*.key    server_name vux.li;    location / {        proxy_pass http://nginxconf;    }}
  • edit package.json
{"scripts": {"deploy":"egg-deploy"  }}

then run

yarn deploy

Customize

create a config file:.deploy.yml, default setting list:

instances:  -port:8001title:8001# 自定义标题,避免与同机上其他 eggjs 重名  -port:8002title:8002startCommand:service nginx start# nginx 启动命令,运行时若 nginx 未运行会尝试执行reloadCommand:nginx -s reload# nginx reload 命令nginxConfig:nginx.conf# nginx 配置地址,可以是绝对地址,如果放置于项目下,记得在 nginx 全局配置里 includewaitStopTime:5000# 停止前的等待时间

todo

  • add test

About

egg hot-reload tool with nginx. eggjs 热部署工具

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp