openshift

Can not SSH to openshift

纵饮孤独 提交于 2019-12-12 08:36:42
问题 I have problem with accessing SSH to Openshift. I still can push code to Openshift via Git. But when trying to SSH to Openshift, the server denied with error "no supported authentication methods available (server sent: public key, gssapi-keyex, gssapi-with-mic". I'm using Windows 7. Do you know what's the problem and how to solve it? 回答1: This answer is for Windows users. Who used puttygen.exe to generate your RSA keys. And you added the PUBLIC key to your Openshift account, via the web

apache tomcat catalina as maven dependency for CORS filter

南笙酒味 提交于 2019-12-12 08:27:04
问题 I'm using org.apache.catalina.filters.CorsFilter in my webapp. So I specify the maven dependency <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-catalina</artifactId> <version>7.0.50</version> </dependency> Now, If I say the scope is "provide" or "runtime" the server doesn't start, because of java.lang.ClassNotFoundException: org.apache.catalina.filters.CorsFilter This class is not available in the catalina jar from jbossews/lib which is 7.0.40 Is it easy to "upgrade"

How to specify a different location for ssh keys loading during rhc setup?

£可爱£侵袭症+ 提交于 2019-12-12 07:24:13
问题 I am using rhc cli tool for OpenShift projects. I have encountered a problem with default rhc ssh key. On any ssh related action (setup, app-create, etc..) rhc creates ~/.ssh/id_rsa key if it does not exist. I do not like that behaviour, and I would like it to use something like ~/.ssh/OpenShift-SSH-Keys/my_id_rsa . Because during rhc setup, it did not ask me from which location I wanted to load the keys. Thus I also looked in ~/.openshift/express.conf and I only saw the configurations for

Cant build on openshift jenkins

我们两清 提交于 2019-12-12 07:04:14
问题 I am getting following exception when I try to build project on openshift jenkins Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud provision INFO: Provisioning new node for workload = 2 and label = null Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud provision INFO: Cancelling build - Label is null Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud cancelBuild INFO: Cancelling build Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud

How to schedule task with certain (say, 5) hour period?

Deadly 提交于 2019-12-12 06:36:36
问题 It is common to use crontab to schedule a task. However, I found that crontab can only schedule tasks on a minutely, hourly or daily basis. If I want to schedule task on every 4 hours, I can still make it by setting up 6 daily task. However, what if I want to have a period that doesn't make up one day, say, a task every 5 hours / 7 hours? Is there a way to set up the task by hour period in crontab or using other tools? (would be even better if that tool can be run on PaaS like Heroku /

How to create new Building Configuration in OpenShift (for Django app)

徘徊边缘 提交于 2019-12-12 06:30:12
问题 I need to create a customized building configuration for my OpenShift(NextGen) Django application .Currently I am having django-psql-persistent configuration, which is comes with OpenShift(NextGen)-Django by default. 回答1: You can use the basic 'python' builder image available from the catalog when adding to a project from the web console. You can also use oc new-app python~<repo-url> from the command line using the oc client. For examples of a few Django applications set up to use a

How to set wsgi.url_scheme to https in bottle?

六眼飞鱼酱① 提交于 2019-12-12 05:46:56
问题 I want to redirect all requests to http to https . Is there a generic approach to setting wsgi.url_scheme to https in a Python 2.7 bottle application? The general structure of the application is: setup.py // contains 'install_requires' wsgi - myapplication.py // the custom application containing bottle routes wsgi.url_scheme seems to be related to environment variables: http://wsgi.readthedocs.org/en/latest/definitions.html#envvar-wsgi.url_scheme But I'm not sure how to actually 'set' the

where to place htaccess file on openshift for wordpress?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 05:28:53
问题 I have read and tried these previous questions on Stack Overflow networks, these solutions doesn't solved my confusion. So I am asking the same question again. The questions that I've researched and doesn't solve my problem Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 I'm just trying to install WordPress on OpenShift by custom way than the one click install. I've cloned my openshift git repo on my desktop. Extracted, added and pushed wordpress.tar.gz to the repo and

I had hosted my server side (`Node js` and `Express js`) code on openshift, from one week I'm getting this error. How to overcome this?

风格不统一 提交于 2019-12-12 05:17:21
问题 In the website it is showing this error for almost all APIs Failed to load resource: the server responded with a status of 502 (Proxy Error) XMLHttpRequest cannot load. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access. The response had HTTP status code 503. NOTE: CORS has been already installed using npm but still getting the above error. And sometimes getting this error Failed to load resource: net::ERR_INCOMPLETE_CHUNKED

Updating pom.xml in OpenShift

本小妞迷上赌 提交于 2019-12-12 05:13:56
问题 I have developed an OpenShift application locally on NetBeans and have pushed the code to server including pom.xml changes. Now my changes are not reflecting. I understand from Openshift: After modifying code and Git push. Changes dont show that pom changes should be made manually rather than replacing the entire file. Is there a way to revert this? 回答1: If you'd like to take a look at the pom.xml template that comes witht the JBoss EWS cartridge, you can find it here. If you want just to