Comments (3)
Hi macatadobe
short answer: try run node lib/server.js
on openshift.com
I haven't used openshift, but from your debug log, I guess the problem might caused by Running node-supervisor with
.
Here is the content of npm start
: https://github.com/yi/node-ticket-manager/blob/master/package.json#L30
The npm start use nodemon to monitor code change and restart the app everytime code changed. nodemon seems to have same function as node-supervisor, so I guess there might be some conflicts.
And we use npm start
only for development. When you deploy to production enviorment, there is no point to use the dev mode. So just run the app by call node lib/server.js
from node-ticket-manager.
HI yi ,
The openshift requests users to NOT run commands on the server as it violates its authorization etc . Anything which is written in package.json 's main and start tags etc would be run automatically . Users of openshift are allowed to give it a git path from where it can download code and openshift uses the downloaded code and run its package .json
What is the use of "main": "lib/index" ?
When i ran the command you suggested i get the following error
[rd-feedbk.rhcloud.com repo]> node lib/server.js
Failed to load c++ bson extension, using pure JS version
Failed to load c++ bson extension, using pure JS version
[express::main] pathToView:/var/lib/openshift/549c15254382ec58f0000070/app-root/runtime/repo/views
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EACCES
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1020:19)
at listen (net.js:1061:10)
at Server.listen (net.js:1135:5)
at Function.app.listen (/var/lib/openshift/549c15254382ec58f0000070/app-root/runtime/repo/node_modules/express/lib/application.js:533:24)
at Object. (/var/lib/openshift/549c15254382ec58f0000070/app-root/runtime/repo/lib/server.js:73:7)
at Object. (/var/lib/openshift/549c15254382ec58f0000070/app-root/runtime/repo/lib/server.js:79:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
from node-ticket-manager.
hi macatadobe
The openshift requests users to NOT run commands on the server as it violates its authorization etc . Anything which is written in package.json 's main and start tags etc would be run automatically .
fork the ticketman repo, and change package.json (line 30):
"start": "node lib/server.js",
[rd-feedbk.rhcloud.com repo]> node lib/server.js
Failed to load c++ bson extension, using pure JS version
bson is the default data format used by mongodb. It seems binary compilation of bson extension failed on your server
Error: listen EACCES
It error is casued by either "port is used" or "lack of access right"
from node-ticket-manager.
Related Issues (11)
- 当每次 worker 来请求任务的时候,更新 worker 的 updated_at 时间戳,从而可以在 /workers 页面中看到哪个 worker 近期没有来工作
- npm start not working on localhost HOT 1
- Error creating new Ticket
- Cloned the app, run it, but it doesnt install an admin user
- ticketman initial boostrap problem post install HOT 1
- Ticketman not connecting to localhost:27017
- test version
- deafult username and password HOT 1
- 这个系统是用来做什么的? HOT 1
- Is that easy to migrate db from Mongo to Redis? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ticket-manager.