Deployd is a node module and can be used inside other node programs or as the basis of an entire node program.
For an app in your current directory:
npm install deployd
You can also install globally:
npm install deployd -g
Here is a simple hello world using Deployd as a node module.
// hello.js
var deployd = require('deployd')
, options = {port: 3000};
var dpd = deployd(options);
dpd.listen();
Run this like any other node program.
node hello.js
db.connectionString
is set, the other db options are ignored.Note: If options.env is "development", the dashboard will not require authentication and configuration will not be cached. Make sure to change this to "production" or something similar when deploying.
process.server
. This means you can only run one Deployd server in a process.process.cwd
. Add this to ensure you are in the right directory: process.chdir(__dirname)
./dashboard
without a key you must run Deployd with the env
option set to development
.Let us know if you have any ideas to improve our docs. Open an issue on github, send us an email, or tweet us.
This entire site, including documentation written in markdown is available on github. Pull requests are appreciated!