1.0.1 • Published 10 years ago
rodent v1.0.1
rodent
npm package to deploy node.js apps.
Usage
- Install globally with npm:
sudo npm install -g rodent
- Make sure these properties exist in your
package.json
:
{
"name": "your-app-name",
"repository": {
"url": "git@github.com:you/repo.git",
"type": "git"
},
"scripts": {
"start": "naught start server.js",
"stop": "naught stop",
"deploy": "naught deploy",
"deploy-abort": "naught deploy-abort"
},
"rodent": {
"flowdock": {
"token": "38eb39023d382adff2eff209effb398f",
"fromAddress": "foo@example.com"
},
"commands": {
"monitor": "tail -f *.log"
},
"targets": {
"staging": {
"ssh": {
"user": "deploy",
"port": 22,
"hosts": [
"ec2-999-73-48-147.compute-1.amazonaws.com"
]
},
"env": {
"HOST": "0.0.0.0",
"PORT": 80,
"NODE_ENV": "production"
}
},
"production": {
"ssh": {
"user": "deploy",
"port": 22,
"hosts": [
"ec2-999-73-48-147.compute-1.amazonaws.com"
]
},
"env": {
"HOST": "0.0.0.0",
"PORT": 80,
"NODE_ENV": "production"
}
}
}
}
}
- Install and configure the prerequisites on your targets:
- authbind
- node.js v0.10.x
- git
- Use the CLI to deploy your code:
Usage: rodent [command]
Available commands:
list list available deploy targets
init <target> - prepares target to accept deployments
start <target> - starts the remote server
stop <target> - stops the remote server
diff <target> [--branch branch] - display what will be deployed on target
deploy <target> [--branch branch] [--npmforce] - deploy code
abort <target> - aborts a hanging deploy
monitor <target> - monitor target processes
exec <target> [command] - run command in target's environment
1.0.1
10 years ago
1.0.0
10 years ago
0.1.1
11 years ago
0.1.0
11 years ago
0.0.15
11 years ago
0.0.14
11 years ago
0.0.13
11 years ago
0.0.12
11 years ago
0.0.11
11 years ago
0.0.10
11 years ago
0.0.9
11 years ago
0.0.8
11 years ago
0.0.7
11 years ago
0.0.6
11 years ago
0.0.5
11 years ago
0.0.4
11 years ago
0.0.3
11 years ago
0.0.1
11 years ago