0.0.9 • Published 10 years ago

harp-openshift v0.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

harp-openshift

A simple extension to run HarpJS on OpenShift.

Install

Execute npm install harp-openshift --save in your project folder.

Usage

Create a new NodeJS OpenShift Application

The following line creates a new scalable NodeJS application named harptest in the namespace example.

rhc create-app harptest nodejs-0.10 -s -n example

Clone and cleanup the application

git clone ssh://<user-id>@harptest-example.openshift.local/~/git/harptest.git/ harptest
cd harptest
rm deplist.txt index.html

Add dependencies

Add the packages harp and harp-openshift dependencies to the package.json, remove existing entries if any

{
    "dependencies": {
  	    "harp":"~0.14.x",
  	    "harp-openshift":"~0.0.7"
  	}
}

Initialize the HarpJS application

Next initialize the HarpJS application into the subdirectory _harp

harp init _harp

Edit server.js

Now delete all contents in server.js and insert the following line.

require('harp-openshift').openshift('_harp');

Commit and deploy your app

git add _harp
git commit -a -m "Harptest running"
git push

Visit your HarpJS application

Open your browser and navigate to https://harptest-example.openshift.local

License

Copyright (c) 2014 Marco Grätsch
Licensed under the MIT license.

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago