openshift

Mapping custom domain to the openshift wordpress blog

£可爱£侵袭症+ 提交于 2019-12-10 03:45:49
问题 I have an openshift wordpress blog running at http://blog-example.rhcloud.com/ and added CNAME records in my DNS management as follows. example.com www.example.com and works fine. When i type, this leads to my blog home page.But the pages and links in the blog actually leads to openshift naming space. i.e., blog-example.rhcloud.com/?page_id=7 I just want to mask blog-example.rhcloud.com/ to example.com every where in my app.I would be happy to provide further information if any thing required

permission denied, mkdir in container on openshift

落爺英雄遲暮 提交于 2019-12-09 12:41:06
问题 I have a container with nodejs and pm2 as start command and on OpenShift i get this error on startup: Error: EACCES: permission denied, mkdir '/.pm2' I tried same image on a Marathon hoster and it worked fine. Do i need to change something with UserIds? The Dockerfile: FROM node:7.4-alpine RUN npm install --global yarn pm2 RUN mkdir /src COPY . /src WORKDIR /src RUN yarn install --production EXPOSE 8100 CMD ["pm2-docker", "start", "--auto-exit", "--env", "production", "process.yml"] Update

Unable to install bower on Openshift

六月ゝ 毕业季﹏ 提交于 2019-12-09 05:59:52
问题 I am unable to install bower on Openshift. I keep on getting errors like remote: npm ERR! Error: ENOENT, lstat '/var/lib/openshift/537xxxxcd/app-root/runtime/repo/node_modules/bower/node_modules/mout/array/intersection.js'[K remote: npm ERR! If you need help, you may report this log at:[K remote: npm ERR! <http://github.com/isaacs/npm/issues>[K remote: npm ERR! or email it to:[K remote: npm ERR! <npm-@googlegroups.com>[K You can see full deployment logs https://s3.amazonaws.com/archive.travis

Run npm install --production on OpenShift

心不动则不痛 提交于 2019-12-09 04:51:55
问题 When I push my code to OpenShift, it looks like it's installing my devDependencies which takes forever . I would really love to set it up so it will only install the dependencies (by running with the --production flag). Is there any way to do this? 回答1: You can tell npm to install using the --production flag by setting the NPM_CONFIG_PRODUCTION environment variable to " true ". Here is an example that should work for existing applications: rhc env set NPM_CONFIG_PRODUCTION="true" Or, you can

Git - How to commit a local repository to a subfolder of another local repository?

[亡魂溺海] 提交于 2019-12-09 03:34:25
问题 I have a Django project that I've started some time ago and I was hosting it at bitbucket. Now I need to host it at openshift, and the way to do that is that they provide you with a git repository and every time you push they deploy automatically. The problem is that the repository comes with several top-level folder for configuration and setup, and the effective django project must be inside a subfolder called wsig/openshift. My question is, how can I commit my changes from my local django

How do you access a MongoDB database from two Openshift apps?

耗尽温柔 提交于 2019-12-09 02:07:35
问题 I want to be able to access my MongoDB database from 2 Openshift apps- one app is an interactive database maintenance app via the browser, the other is the principle web application which runs on mobile devices via an Openshift app. As I see it in Openshift, MongoDB gets set up within a particular app's folder space, not independent of that space. What would be the method to accomplish this multiple app access to the database ? It's not ideal but is my only choice to merge the functionality

OpenShift Python mongoDB environment variables not set / can't connect

二次信任 提交于 2019-12-08 21:31:29
This is in my application file head: import os import sys from cgi import parse_qs, escape import pymongo from pymongo import MongoClient I have the mongoDB 2.4 gear installed, and am trying to connect via client = MongoClient('mongodb:$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/') I get the errors: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/var/lib/openshift/531b77fd500446980900010d/python/virtenv/lib/python2.7/site-packages/pymongo/mongo_client.py", line 239, in __init__ res = uri_parser.parse_uri(entity, port) File "/var/lib/openshift

fatal: protocol error: bad line length character: Inva

北战南征 提交于 2019-12-08 13:08:32
while cloning repositories from bpm suite installed in Openshift.I am getting the following git error. fatal: protocol error: bad line length character: Inva Please help me to fix this. This error is generally seen when using an ssh url (like git@aserver:arepo ) The usual cause is, on the git repo hosting server side, a .profile or .bashrc which includes some echo: see Git FAQ It likely means you have some extraneous characters, info message or something upon logging into ssh in command mode. To test this, do: ssh user@git.example.com echo testing commands You should only see testing commands

faye is not available on client browser for node js

北城余情 提交于 2019-12-08 11:31:37
问题 I have created a sample application which is a chat server using nodejs + faye + epxress which is running fine on my local machine and I able to send message to server and publish it to client browser. But when I deployed my app on Openshift it is not working. I am able to send message but I am not able to publish message. Here is my code snippet Server.js var path = require('path');var http = require('http'), express = require('express'), faye = require('faye'); var bodyParser = require(

Error installing SailsJS in OpenShift

情到浓时终转凉″ 提交于 2019-12-08 11:20:57
问题 info: Starting app... Grunt :: module.js:340 throw err; ^ Error: Cannot find module '/var/lib/openshift/54a3a0ec4382ecf1130000f1/app-root/runtime/repo/node_modules/sails/node_modules/grunt-cli/bin/grunt' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3 回答1: OpenShift needs grunt separately added to package.json, it does not contain it out of box. Try to