Click here to lend your support to: rails best practices and make a donation at www.pledgie.com !

How it works

public repository on github

private repository on github

 

 

Public repository on github

 

1. Sign in with Github.    Sign in with Github

 

2. create a repository.    New Project

 

3. then each time you push to github, railsbp will analyze your code quality automatically. See Figure 1

                                                                                      Figure 1

 

 

Private repository on github

 

You can simply fork railsbp.com repository, and setup it on your own server.

 

Or you can follow the following instructions

 

1. Sign in with Github.    Sign in with Github

 

2. create a repository.    New Project

 

3. uncheck visibility and update configs url on edit repository page.

 

4. copy repository token on edit repository page, see Figure 2

                                                          Figure 2

 

5. setup proxy on your own server, check out sinatra-proxy or rails-proxy, paste the repository token to config/railsbp.yml

 

6. set service hook on github. see Figure 3

    6.1. go to repository page on github

    6.2. click 'Admin' -> 'Service Hooks'

    6.3. select 'Railsbp' in 'AVAILABLE SERVICE HOOKS'

    6.4. fill "http://railsbp.com" in Railsbp Url and paste repository token in token, check "Active" and click "Update Settings" 

                                                                                            Figure 3

 

7. then each time you push to github, railsbp will analyze your code quality automatically. See Figure 4

                                                                                         Figure 4