An Example for using Express 4 with Openshift
This is a blank template project. It is derived from express4 generator template project and openshift default project.
Just clone the repo ! :)
An Example for using Express 4 with Openshift
node.js version latest (6.3.1)
Tried to deploy using web console and got this error:
Stopping Node.js application...
Node.js v6.3.1 and NPM 3.10.6 installed.
The initial build for the application failed: Shell command '/sbin/runuser -s /bin/sh 57b0bd070c1e6692ed000163 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c2,c662' /bin/sh -c \"gear prereceive --init >> /tmp/initial-build.log 2>&1\""' returned an error. rc=143
.Last 10 kB of build output:
[eval]:1
var p = require('/var/lib/openshift/57b0bd070c1e6692ed000163/app-root/runtime/repo//package.json'); console.log(p.scripts.start);
^
TypeError: Cannot read property 'start' of undefined
at [eval]:1:122
at ContextifyScript.Script.runInThisContext (vm.js:25:33)
at Object.exports.runInThisContext (vm.js:77:17)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:541:32)
at bootstrap_node.js:315:29
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
[eval]:1
var p = require('/var/lib/openshift/57b0bd070c1e6692ed000163/app-root/runtime/repo//package.json'); console.log(p.scripts.stop || '');
^
TypeError: Cannot read property 'stop' of undefined
at [eval]:1:122
at ContextifyScript.Script.runInThisContext (vm.js:25:33)
at Object.exports.runInThisContext (vm.js:77:17)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:541:32)
at bootstrap_node.js:315:29
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
SIGTERM
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.