example of how to use do
JavaScript Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.do
.gitignore
LICENSE
README.md
hello.js
package.json

README.md

do-example

sample example of setting up the do framework

Setup

(note: if you have permission issues with the commands below try using sudo or check out this thread: https://github.com/isaacs/npm/issues/3139. Alternatively you can just list do as a dependency in your package.json and access the do bin via ./node_modules/.bin/do)

if you dont have do installed:

$ npm install -g git://github.com/mattrenaud/do

then:

$ git clone git@github.com:mattrenaud/do-example.git
$ cd do-example/

Now you should have a server you can ssh to available to. Ideally you can use certificate based authentication (mostly because i havent tested passwords yet). Set your creds here:

$ vi .do/config/global.js

(note: these creds can be set in any config file for env specific creds)

Change 'localhost' in the dev config to your ssh server:

$ vi .do/config/dev.js

Test run a task:

$ do dev deploy
--> Running task deploy
--> Running on host localhost
[localhost] out: this is a fake script that deploys do-example
tasks ended successfully