openshift

How to modify Drupal site on OpenShift using SFTP?

亡梦爱人 提交于 2019-12-11 13:13:11
问题 I have Drupal 7 set up on my OpenShift account using the Drupal 7 quick start. I have set up WinSCP to navigate the directory, and I can get to app-root/data/sites/all/, which is where custom Drupal mods go. I've installed the Zen theme as well. However, when I try to change any of the template files in app-root/data/sites/all/themes/zen/templates, none of the changes show up at my site's publicly accessible URL. I've tried clearing the Drupal cache and the browser cache, but still it doesn't

RHC client tool for windows error while setup

故事扮演 提交于 2019-12-11 12:57:03
问题 I followed all the steps as mentioned on the openshift page for guide on installing the client tool. after doing gem install rhc , when i give the command rhc setup following error is shown. C:\Users\me>rhc setup --debug C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file -- dl/import (LoadError) from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib

openshift python pip install cffi fails

我怕爱的太早我们不能终老 提交于 2019-12-11 12:54:52
问题 When the application is deployed after git push to openshift repo I get an error when requirements.txt is start to installing. The thing is, in my local machine there is not issue when I execute pip install cffi remote: Requirement already satisfied (use --upgrade to upgrade): aniso8601==0.92 in /var/lib/openshift/myuser/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages (from -r /var/lib/openshift/myuser/app-root/runtime/repo/requirements.txt (line 1)) remote:

Editing httpd.conf (openshift.conf) to create an apache Alias

南笙酒味 提交于 2019-12-11 12:39:36
问题 Is there a way to make a simple edit to (httpd.conf) with OpenShift and have it persist across restarts? `${HOME}php/configuration/etc/conf.d/openshift.conf` Here is what I would like to do: I just need to make an apache directory alias (NOT a DNS alias) and define a directory with some permissions. Here is what I've tried: I manually edited the file on rhc and restarted the app from my local command prompt. This overwrote my edited file with the default cartridge file when the restart was

Why mongodb is reset after push to openshift

你。 提交于 2019-12-11 12:07:50
问题 I am deploying my application written using sails.js onto the openshift. It works properly but however when i commit something new. It will then build again and clean up all my data in the mongodb. So I wonder any reasons? Sorry i am new to openshift Is it normal mongodb will be cleaned up after stop/start MongoDB cartridge? How to keep the data remained in the mongodb? do i need to perform save when stop and restore when start? I am curious how it automatically build and restart the

Openshift Scalable Rails 4 new application renders 503 Server Unavailable

梦想的初衷 提交于 2019-12-11 11:54:59
问题 I successfully deployed a rails single gear application on openshift a few months ago. I am now attempting to deploy a scalable application. After setting up the app, connecting with git, pushing a minimalist project to openshift, I am getting a 503 Server Unavailable error. After doing quite a bit of research, I speculate my problem may be related to the HAProxy. The following post here goes into some detail about the haproxy and dealing with the cfg. I do have the same DOWN gears for my

How to setup KoaJS in Openshift

与世无争的帅哥 提交于 2019-12-11 11:48:25
问题 I've been following the example on how to enable custom node version in openshif (http://www.zev23.com/2014/04/openshift-harmony-nodejs.html) so when I ssh to the application I can see the node version(0.11.14) installed but the when I look at the logs it says app.use(function *(){ ... SyntaxError: Unexpected token * and I'm getting a 503 error. here's my server.js file: var koa = require('koa'); var app = module.exports = koa(); app.use(function *(){ this.body = 'Hello World'; }); var

Get image path from OpenShift server. Spring MVC. JSP

大城市里の小女人 提交于 2019-12-11 11:16:07
问题 I have got a trouble while getting photo path from OpenShift server. I have got a Spring MVC app that have deployed at OpenShift server. There, every user could download there profile pics. I do it this way. @RequestMapping(value = "/user/updateinfo", method = RequestMethod.POST) public String postAvatar(@RequestParam("file") MultipartFile file, Principal principal) { if (file.isEmpty()) { return "redirect:/user"; } if (!file.isEmpty()) { try { String relativeWebPath = ""; String

RMI or socket connection to Java Program on OpenShift

匆匆过客 提交于 2019-12-11 10:38:08
问题 I have this following simple scenario: I have created a JBossAS7 application on OpenShift. I have an index.jsp that calls a Java Class every time it's loaded. This Java class gathers some data and saves it as a string. What I want to do now is get the text contained in that String, but NOT have it displayed on the page. What I need is a mechanism like RMI or a socket that I can connect to and simply receive the String using a client program. Unfortunately, OpenShift blocks all ports and I

openshift - how to obtain webservice endpoint

你说的曾经没有我的故事 提交于 2019-12-11 10:20:04
问题 I've created a sample web service as package com.faisal.webservices.register; import javax.jws.WebMethod; import javax.jws.WebService; @WebService() public class RegisterService { @WebMethod() public String sayHello(String name) { System.out.println("Hello: " + name); return "Hello " + name + "!"; } } web.xml <servlet> <display-name>RegisterService</display-name> <servlet-name>RegisterService</servlet-name> <servlet-class>com.faisal.webservices.register.RegisterService</servlet-class> <