openshift guide, empty js array err fix
This commit is contained in:
parent
bd3877f73d
commit
0d38cd9bbc
40
README.md
40
README.md
|
@ -64,3 +64,43 @@ The **blue line** - this represents the dropping size of the outstanding Issues
|
|||
There is nothing to save in a database so each refresh of the page fetches all of the latest information from GitHub.
|
||||
|
||||
Enjoy!
|
||||
|
||||
## Redhat OpenShift:
|
||||
|
||||
Create an account at [http://openshift.redhat.com](http://openshift.redhat.com) specifying a Node.js 0.6 "Web Cartridge" specifying the url for the app.
|
||||
|
||||
Install the OpenShift [client tools](https://openshift.redhat.com/app/getting_started).
|
||||
|
||||
Add your public key from `~/.ssh/id_rsa.pub` to your account. You can use xclip to copy the key to the clipboard:
|
||||
|
||||
```bash
|
||||
$ xclip -sel clip < ~/.ssh/id_rsa.pub
|
||||
```
|
||||
|
||||
Add the remote repository, like:
|
||||
|
||||
```bash
|
||||
$ git remote add openshift ssh://[username_hash]@burndown-intermine.rhcloud.com/~/git/burndown.git/
|
||||
```
|
||||
|
||||
Push your changes:
|
||||
|
||||
```bash
|
||||
$ git push -u openshift master
|
||||
```
|
||||
|
||||
### Debugging
|
||||
|
||||
In case of trouble, use the OpenShift client tools to debug:
|
||||
|
||||
```bash
|
||||
$ /var/lib/gems/1.8/bin/rhc domain status
|
||||
```
|
||||
|
||||
To determine the status of the app, run:
|
||||
|
||||
```bash
|
||||
$ /var/lib/gems/1.8/bin/rhc-app status -a burndown
|
||||
```
|
||||
|
||||
You can also SFTP into your instance on port `22` [sftp://burndown-intermine.rhcloud.com](sftp://burndown-intermine.rhcloud.com) or SSH to it.
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "github-burndown-chart",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"coffee-script": "1.3.3",
|
||||
|
|
|
@ -84,6 +84,9 @@
|
|||
i++;
|
||||
<% end %>
|
||||
|
||||
// Early exit to avoid Rickshaw error.
|
||||
if (actual.length == 0) return;
|
||||
|
||||
// The line graph.
|
||||
var graph = new Rickshaw.Graph({
|
||||
element: document.querySelector("#chart"),
|
||||
|
|
Loading…
Reference in New Issue