openshift

openshift client tools for windows, rhc setup error

混江龙づ霸主 提交于 2019-12-11 02:04:36
问题 C:\files\ruby>rhc setup --debug DEBUG: Using config file C:/Users/files/.openshift/express.conf DEBUG: Running greeting_stage OpenShift Client Tools (RHC) Setup Wizard This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed. DEBUG: Running login_stage DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7 DEBUG: Created new

Openshift app with flask, sqlalchemy and sqlite - problems with database reverting

大城市里の小女人 提交于 2019-12-11 01:37:11
问题 I have a problem pretty much exactly like this: How to preserve a SQLite database from being reverted after deploying to OpenShift? I don't understand his answer fully and clearly not enough to apply it to my own app and since I can't comment his answer (not enough rep) I figured I had to make ask my own question. Problem is that when pushing my local files (not including the database file) my database on openshift becomes the one I have locally (all changes made through the server are

Change URIEncoding in OpenShift JBoss AS 7

醉酒当歌 提交于 2019-12-11 00:07:41
问题 I am building an testing app with Spring Security using the OpenId module. I also use the jQuery OpenId plugin to support some providers. I am testing the app with Tomcat (version 7) and after a little bit of troubleshooting I found that I need to specify the URI encoding for the server in order to support users whose credentials have tilded letters and vowels e.g. Peñasco, Ángel, etc. In Tomcat I just have to set this to the tomcat-server.xml file: <Connector URIEncoding="UTF-8" SSLEnabled=

Why does redirecting from HTTPS to HTTP fail in this Rails 4 app (OpenShift)?

瘦欲@ 提交于 2019-12-10 23:32:17
问题 When the user is on HTTP, I can successfully redirect him to a HTTPS (SSL) variant like so: redirect_to { protocol: 'https://', domain: 'ssl.tld' } However, when I want to do the reverse , it creates an infinite redirection loop . I've tried several variants. To mention some: redirect_to { protocol: 'http://', domain: 'nonssl.tld' } redirect_to "http://nonssl.tld#{request.fullpath}" The loop, according to the log: 000.000.000.000 - - [21/Apr/2016:18:50:04 -0100] "GET /en HTTP/1.1" 302 887

Configuring Glassfish without admin console gui

老子叫甜甜 提交于 2019-12-10 22:57:13
问题 I have installed Glassfish application server Openshift cloud servers. I can only use :8080 port because of Openshift restrictions. It won't let me run admin console on :4848 port and I will somehow configure datasource, file realm and security realm manually from configuration files. a-) Is it possible to do configuration without the admin console? b-) Can admin console run on :8080 port along with applications? Note: It is not possible to allocate any port for admin console Openshift won't

Naked domain with Openshift

南楼画角 提交于 2019-12-10 22:06:11
问题 One of the biggest issue I have faced with GAE cloud offering from Google is that it cannot handle naked domains. It can handle subdomains www however not naked domains. This is a BIG problem, in that your app will not be able to handle PATH or Subdirectory from client request as it is stripped off during a DNS forward to a www subdomain for example. So my question is, can Openshift handle naked domains? In that, a PATH or Subdirectory from client request would not be lost in translation. 回答1

SSH “Failed to add the host to the list of known hosts” Openshift

雨燕双飞 提交于 2019-12-10 21:41:27
问题 I tried to use ssh command to connect to another remote host. ssh -p 21098 -i $OPENSHIFT_DATA_DIR/.ssh/host_key user@domain.com The authenticity of host '[domain.com]:21098 ([124.219.148.93]:21098)' can't be established. RSA key fingerprint is 12:15:79:55:c6:2a:66:1e:82:94:da:19:e1:ca:21:3d. Are you sure you want to continue connecting (yes/no)?yes Failed to add the host to the list of known hosts (/var/lib/openshift/541b685c5973cae7bbf006f4/.ssh/known_hosts). Connection closed by 124.219.148

Unsupported major.minor version 51.0 OpenShift

人走茶凉 提交于 2019-12-10 21:29:42
问题 While deploying i have several errors of unsupported major.minor version i.e: INFO: Initializing Spring root WebApplicationContext 2014-08-02 05:46:09,115 [localhost-startStop-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [/var/lib/openshift/53dc1e7d5973ca85d7000615/jbossews/work/Catalina/localhost/_/WEB-INF/classes/META-INF

How to use simple npm-install in Openshift?

懵懂的女人 提交于 2019-12-10 20:50:36
问题 I'm trying to use cute-files on my openshift account https://www.npmjs.com/package/cute-files I know node.js works as I did in localhost:3000 but not as expert, I'm ended up with http://cutefiles-powerupware.rhcloud.com/ that's not I'm looking it. It should be Cute-files app as start. I did PuTTY to access terminal to do npm-install but no luck due to permission. The problem is... I cannot understand how openshift works, I need to know how to access console to do npm-install then, execute "$

How to update JDK on Jenkins Server cartridge (OpenShift)?

让人想犯罪 __ 提交于 2019-12-10 19:59:29
问题 The Jenkins Server cartridge (OpenShift) uses OpenJDK 7u55. How to update to OpenJDK 7u60 or 8u05 or Oracle JDK (7u60 or 8u05), please? 回答1: You can do this using OpenShift's action hooks. Add a script which will check for the existence of the JDK you want to use, and download it if it doesn't exist. For example, in .openshift/action_hooks/deploy , add this snippet: #! /bin/bash JDK_HOME=$OPENSHIFT_DATA_DIR/jdk1.8.0 if [[ ! -L $JDK_HOME && ! -d $JDK_HOME ]] then cd $OPENSHIFT_DATA_DIR wget