Stagecoach: 基于 Linux 服务器的 Node.js 应用部署框架

Stagecoach 是一款用于在 Linux 服务器上部署和管理多个 Node.js Web 应用的框架,适用于测试和生产环境。

特性:

  • 支持在单台服务器上运行多个应用
  • 使用 forever 保证应用持续运行
  • 实现最小停机时间的应用重新部署
  • 应用崩溃后自动重启

环境要求:

  • Node.js
  • forever ( 通过 npm 安装: npm install -g forever)

配置:

  1. Stagecoach 安装目录为 /opt/stagecoach
  2. 应用目录位于 /opt/stagecoach/apps 子目录下
  3. 创建名为 nodeapps 的用户
  4. 以 root 用户身份登录服务器
  5. 执行以下命令:
cd /opt
git clone https://github.com/punkave/stagecoach 
cd stagecoach 
zip
stagecoach-master.zip 预估大小:28个文件
folder
stagecoach-master 文件夹
file
.gitignore 216B
folder
bin 文件夹
file
sc-stop-all 233B
file
sc-rollback 1KB
file
sc-deploy 4KB
file
sc-logs 501B
file
sc-shell 1KB
file
sc-start-all 236B
file
sc-disable 846B
file
sc-restart 653B
file
sc-enable 887B
file
settings.example 407B
folder
sc-proxy 文件夹
file
package.json 417B
folder
upstart 文件夹
file
sc-proxy.conf 901B
file
README.md 4KB
file
config-example.js 1KB
file
DEPRECATED 11B
file
server.js 4KB
file
README.md 14KB
folder
example 文件夹
file
app.js 669B
file
package.json 474B
folder
deployment 文件夹
file
migrate 177B
file
settings 802B
file
start 2KB
file
stop 739B
file
before-connecting 193B
file
dependencies 2KB
file
settings.production 235B
file
rsync_exclude.txt 519B
zip 文件大小:24.45KB