openshift

Error: listen EACCES on Openshift app

主宰稳场 提交于 2020-01-02 02:12:24
问题 I have the following code var express = require('express') , app = express() , server = require('http').createServer(app) , io = require('socket.io').listen(server) , connect = require('connect') , pg = require('pg') , Client = pg.Client; // Setup express middleware app.use(express.static('public')); app.use(connect.logger()); // Start the server var port = process.env.OPENSHIFT_INTERNAL_PORT || 8080 , ip = process.env.OPENSHIFT_INTERNAL_IP || "127.0.0.1"; server.listen(port, ip); But when

openshift with nodejs isn't respecting the path to my server file in package.json

一世执手 提交于 2020-01-01 19:48:47
问题 I have been working on a Node.js server and am now uploading it to OpenShift. I am not using the default ./server.js file, but rather, my insertion point is ./bin/www. I have set this as the insertion file in package.json like so: { "name": "NekoList", "version": "0.0.0", "private": true, "scripts": { "start": "./bin/www" ... }, I can verify that www is in the ./bin this directory, and it is a valid javascript file that functions perfectly well on my local environment. This is according to

JDBC can't connect to mysql database on openshift

孤人 提交于 2020-01-01 06:38:31
问题 I managed to set up MySQL database on OpenShift with phpMyAdmin and all. I was told the host name and port my for my database are $OPENSHIFT_MYSQL_DB_HOST and $OPENSHIFT_MYSQL_DB_PORT respectively, which I put in my context.xml file like this: <context-param> <param-name>driver</param-name> <param-value>com.mysql.jdbc.Driver</param-value> </context-param> <context-param> <param-name>url</param-name> <param-value>jdbc:mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/burgerjoint</param

JDBC can't connect to mysql database on openshift

落花浮王杯 提交于 2020-01-01 06:37:26
问题 I managed to set up MySQL database on OpenShift with phpMyAdmin and all. I was told the host name and port my for my database are $OPENSHIFT_MYSQL_DB_HOST and $OPENSHIFT_MYSQL_DB_PORT respectively, which I put in my context.xml file like this: <context-param> <param-name>driver</param-name> <param-value>com.mysql.jdbc.Driver</param-value> </context-param> <context-param> <param-name>url</param-name> <param-value>jdbc:mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/burgerjoint</param

OpenShift NodeJS deployment : socket.io index.html port assignment, etc

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 03:41:46
问题 I locally wrote a nodeJS app using socket.io and express modules. I wanted to use openshift for hosting. So I changed the main .js to server.js which seems to be the index equivalent of the openshift file and changed the server port setting to: var server = require('http').createServer(app).listen(process.env.OPENSHIFT_NODEJS_PORT || 3000); as indicated in some posts. However after git commit, I am still getting: remote: info: socket.io started remote: warn: error raised: Error: listen EACCES

OpenShift NodeJS deployment : socket.io index.html port assignment, etc

喜夏-厌秋 提交于 2020-01-01 03:41:25
问题 I locally wrote a nodeJS app using socket.io and express modules. I wanted to use openshift for hosting. So I changed the main .js to server.js which seems to be the index equivalent of the openshift file and changed the server port setting to: var server = require('http').createServer(app).listen(process.env.OPENSHIFT_NODEJS_PORT || 3000); as indicated in some posts. However after git commit, I am still getting: remote: info: socket.io started remote: warn: error raised: Error: listen EACCES

Not able to import openshift application in eclipse

老子叫甜甜 提交于 2019-12-31 07:12:13
问题 I am using eclipse to connect with openshift. Below are the steps that I have taken. sign up in openshift created a "JBOSS Application Server 7" application downloaded Eclipse Mars downloaded openshift tools from the eclipse marketplace from options selected import and choose openshift sign in to openshift from the prompt(with default server location) choose "Use my existing openshift application" and from the browse tab selected that application which I created in openshift & clicked next

Openshift run cron with an invalid python version

拟墨画扇 提交于 2019-12-31 06:49:24
问题 Two days ago my cron jobs stopped working. In the cron log is an error loading a library, so I change the cron to only make a "python --version" and shows 2.6 when my cardtrige is Python 2.7. If I try to load the vritenv in the cron fails to, because don't foun Python 2.7 libs. But if I enter by ssh and run the bash in the crom, the code run perfect. Anyone knows what happens? EDIT: I reported the bug and they are working on it https://bugzilla.redhat.com/show_bug.cgi?id=1076626 回答1: Seems

Openshift run cron with an invalid python version

孤街浪徒 提交于 2019-12-31 06:49:05
问题 Two days ago my cron jobs stopped working. In the cron log is an error loading a library, so I change the cron to only make a "python --version" and shows 2.6 when my cardtrige is Python 2.7. If I try to load the vritenv in the cron fails to, because don't foun Python 2.7 libs. But if I enter by ssh and run the bash in the crom, the code run perfect. Anyone knows what happens? EDIT: I reported the bug and they are working on it https://bugzilla.redhat.com/show_bug.cgi?id=1076626 回答1: Seems

How To Serve Uploaded Images From OpenShift DATA_DIR

风格不统一 提交于 2019-12-31 02:30:08
问题 My app runs on JBoss EAP and I want to upload images to the OPENSHIFT_DATA_DIR and then save their relative paths in the MySQL DB because I need to construct a path to the images and later serve them to the browser when needed. If my OPENSHIFT_DATA_DIR path is /var/lib/openshift/5364c54ce0b8cd80180001f7/app-root/data/ and I want schoolpics/federaluniversity/uniben-1/ inside it to save a file logo.png such that the full path will be /var/lib/openshift/5364c54ce0b8cd80180001f7/app-root/data