Default redirect to version 5.1.1
1 file changed
tree: d8e8b41b128c5156b2a487d3117f1536c878a447
  1. lib/
  2. .gitignore
  3. LICENSE
  4. NOTICE
  5. package.json
  6. Procfile
  7. README.md
  8. VERSION
README.md

Cordova Documentation Redirect Server

Redirect Logic

Request      |  Type  |  Redirect
-------------|--------|----------------
/            |  302   |  /en/VERSION/index.html
/some/path/  |  302   |  /some/path/

Contribute

Install

  1. Install Heroku Toolkit
  2. $ npm install

Updating Homepage Version

$ echo 2.5.0 > VERSION
$ git commit -am "Default redirect to version 2.5.0"

Start Server

$ npm start

Deploy to Heroku

# Sanity test that Heroku Procfile works
$ foreman start

# Add Heroku remote repository
$ git remote add heroku git@heroku.com:docs-cordova-io.git

# Heroku must deploy from master branch
$ git push heroku docs-cordova-io:master

Heroku Details

To become a collaborator to the Heroku project: