Skip to content

Commit

Permalink
[fix] fixes url, which was wrong by now
Browse files Browse the repository at this point in the history
  • Loading branch information
dscape committed Mar 19, 2012
1 parent 422e344 commit 82a76c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
18 changes: 3 additions & 15 deletions docs/nodejitsu
Expand Up @@ -11,23 +11,13 @@ Install Notes
- Username
- Password
- Branch, if specified will only deploy from this branch
- Enter the host of your Nodejitsu installation (defaults to http://github.jit.su), the protocol-prefix is optional and defaults to "http://".
- Enter the host of your Nodejitsu installation (defaults to https://webhooks.nodejitsu.com), the protocol-prefix is optional and defaults to "https://".

3. Check the "Active" checkbox and click "Update Settings".
4. Click on the "Nodejitsu" service name and then click the "Test Hook" link.
5. You should receive an email from Nodejitsu once the build has completed

For more details about Nodejitsu, go to http://nodejitsu.com

If you are having issues with deploying a payload you can simply:

```
curl -X POST -H "Content-Type: application/json" \
http://username:password@github.jit.su/deploy \
--data "{\"payload\": {\"ref\": \"/refs/head/master\", \"repository\": {\"url\": \"https://github.com/dscape/nano\", \"name\": \"nano\"}}}"
```

Replacing `"{\"payload\": ...` with a real payload ([sample])
For more details about Nodejitsu, go to http://nodejitsu.com.
If you want to know if your deploy was successful or why it failed please refer to out [API documentation of the Nodejitsu Web-hook API](https://gist.github.com/72995cb95b73e05b79f9)

Developer Notes
---------------
Expand All @@ -37,5 +27,3 @@ data
- username
- domain
- branch

[eg]: https://gist.github.com/653aee9cf1232f3acb5c
4 changes: 2 additions & 2 deletions services/nodejitsu.rb
Expand Up @@ -31,7 +31,7 @@ def password
end

def scheme
domain_parts.size == 1 ? 'http' : domain_parts.first
domain_parts.size == 1 ? 'https' : domain_parts.first
end

def domain
Expand All @@ -42,7 +42,7 @@ def domain

def full_domain
if data['domain'].to_s == ''
'http://github.jit.su'
'https://webhooks.nodejitsu.com'
else
data['domain']
end.strip
Expand Down

0 comments on commit 82a76c7

Please sign in to comment.