Skip to content

Commit

Permalink
Change the default NODE_VERSION_URL (as per #48)
Browse files Browse the repository at this point in the history
  • Loading branch information
icflorescu committed Jul 3, 2016
1 parent 17ad10a commit d68dc74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Because the standard OpenShift cartridge never gets updated to the latest Node.j

## When to use

When you need a quick and unsofisticated solution to run your application on the latest Node.js version.
When you need a quick and unsophisticated solution to run your application on the latest Node.js version.

## How to

Expand Down Expand Up @@ -58,7 +58,7 @@ See output of `rhc app create --help` for information on additional options.

### Node.js

By default, the Node.js version is determined by querying [semver.io/node/stable](https://semver.io/node/stable).
By default, the Node.js version is determined by querying [semver.io/node/unstable](https://semver.io/node/unstable).

A different URL can be specified either via `NODE_VERSION_URL` environment variable or by setting `.openshift/NODE_VERSION_URL` marker in your application repository. For instance, you'd get the **latest 0.10.x** (0.10.41 as of Jan 24, 2015) by putting this in `NODE_VERSION_URL` variable or `.openshift/NODE_VERSION_URL` marker:

Expand Down Expand Up @@ -100,7 +100,7 @@ A different npm version can be specified either via `NPM_VERSION_URL` environmen

**Q**: The latest Node.js version is 5.3.0, but the cartridge installs 5.1.1. Isn't it supposed to install the **latest**?

**A**: By default, the Node.js version is determined by querying [semver.io/node/stable](https://semver.io/node/stable) (see the top of this README). For reasons which escape me, semver.io is not updating **instantly** the latest version, but **you can** force the cartridge to install it by putting, for instance, `https://semver.io/node/resolve/5.3.x` in `NODE_VERSION_URL` environment variable or `.openshift/NODE_VERSION_URL` file.
**A**: By default, the Node.js version is determined by querying [semver.io/node/unstable](https://semver.io/node/unstable) (see the top of this README). For reasons which escape me, semver.io is not updating **instantly** the latest version, but **you can** force the cartridge to install it by putting, for instance, `https://semver.io/node/resolve/5.3.x` in `NODE_VERSION_URL` environment variable or `.openshift/NODE_VERSION_URL` file.

---

Expand Down
2 changes: 1 addition & 1 deletion lib/util
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function update_nodejs {
elif [ -f "$OPENSHIFT_REPO_DIR/.openshift/NODE_VERSION_URL" ]; then
local VERSION_URL=$(cat $OPENSHIFT_REPO_DIR/.openshift/NODE_VERSION_URL)
else
local VERSION_URL="https://semver.io/node/stable"
local VERSION_URL="https://semver.io/node/unstable"
fi

local LATEST="v$(curl --silent --max-time 5 ${VERSION_URL})"
Expand Down
4 changes: 2 additions & 2 deletions metadata/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Name: nodejs
Description: Custom Node.js cartridge auto-updating to the latest stable version on each build.
Version: '5.11.1'
Version: '6.2.2'
License: Node.js License
License-Url: https://raw.githubusercontent.com/nodejs/node/master/LICENSE
Vendor: www.nodejs.org
Website: http://www.nodejs.org/
Display-Name: Node.js Auto-Updating
Cartridge-Short-Name: NODEJS
Cartridge-Version: '2.2.5'
Cartridge-Version: '2.3.0'
Cartridge-Vendor: icflorescu
Source-Url: https://github.com/icflorescu/openshift-cartridge-nodejs.git
Categories:
Expand Down

0 comments on commit d68dc74

Please sign in to comment.