openshift

vague php.log entry in OpenShift

折月煮酒 提交于 2019-12-13 07:31:43
问题 I just started a new PHP 5.4 app with scaling, then tailed the logs and found an entry as follows being created in php.log every 2 seconds: - - - [21/Apr/2014:21:20:56 -0400] "GET / HTTP/1.0" 200 39627 "-" "-" Does anyone know what's creating this? 回答1: This is HAProxy sending the request as part of a scalable app. 来源: https://stackoverflow.com/questions/23208789/vague-php-log-entry-in-openshift

Configure WSGI with Django on OpenShift

会有一股神秘感。 提交于 2019-12-13 07:21:18
问题 I tried to configure WSGI with wsgi.py in my project folder import os import sys sys.path.append(os.path.join(os.environ['OPENSHIFT_REPO_DIR'])) os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings' virtenv = os.environ['OPENSHIFT_HOMEDIR'] + 'python/virtenv/' os.environ['PYTHON_EGG_CACHE'] = os.path.join(virtenv, 'lib/python2.7/site-packages') virtualenv = os.path.join(virtenv, 'bin/activate_this.py') try: execfile(virtualenv, dict(__file__=virtualenv)) except IOError: pass # # IMPORTANT

OpenShift superuser permissions

笑着哭i 提交于 2019-12-13 07:19:16
问题 I am trying to install Client tools on RHEL/OpenShift free server. However following https://developers.openshift.com/en/getting-started-rhel-centos.html#client-tools I am supposed to execute some super user commands which gives a permission error. Do I need to do something to enable super user access on my virtual machine? sudo su bash: /usr/bin/sudo: Permission denied 回答1: OpenShift Online does not allow you to gain super user access, so I don't think you will be able to install the client

openshift laravel 5.0 uploaded images deleted after pushing the changes

自闭症网瘾萝莉.ら 提交于 2019-12-13 07:17:16
问题 Every time I push something in openshift, all my uploaded files are deleted. I'm not sure where openshift moved them. All i see on the admin panel is broken images. Anyone encountered this problem? I've tried linking the public/uploads folder to OPENSHIFT_DATA_DIR using the deploy script, unfortunately it didn't work. What's wrong with my deploy script? ln -sf ${OPENSHIFT_DATA_DIR}uploads ${OPENSHIFT_REPO_DIR}public/uploads ln -sf ${OPENSHIFT_DATA_DIR}levels ${OPENSHIFT_REPO_DIR}public/levels

WSGI Application not found on OpenShift

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 06:37:38
问题 I started from the Django template application in OpenShift, pushed it to OpenShift, and it ran without issue. After making a couple minor changes to settings.py and /.openshift/action_hooks/deploy, the application no longer runs (404 not found). In the command window, during deployment, I see CLIENT_ERROR: WSGI application not found . The build/deploy succeeds and finishes deployment. As stated before, the home page now returns a 404. The logs indicate that application.py is not found. If I

can openshift give me a open port for nodejs server in django app?

左心房为你撑大大i 提交于 2019-12-13 06:05:04
问题 I create an django based app in openshift. already I want to add node.js to it.But node.js needs open port for listening : var http = require('http'); var server = http.createServer().listen(4000); first I decide to install node.js from here but I got error: You can only have one framework cartridge in your application 'djangoApp'. I search every where but I don't get the answer :( question : is this possible to add node.js to django app and use a port to connect to node.js ? 回答1: You could

Connecting a tomcat project app with mysql on openshift

人盡茶涼 提交于 2019-12-13 05:13:09
问题 Im trying to make a simple tomcat-mysql connection on openshift. But when i run it on the server it shows a HTTP Status 404 error and i dont know why . Here there are my main files : Java Class: import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class DB_Info { public static final String MYSQL_USERNAME = System.getenv("OPENSHIFT_MYSQL_DB_USERNAME"); public static final String MYSQL_PASSWORD = System.getenv("OPENSHIFT_MYSQL_DB_PASSWORD"); public

Openshift: get access to openshift docker registry

大兔子大兔子 提交于 2019-12-13 05:11:18
问题 I've exposed my openshift registry: $ oc get routes -n default NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD docker-registry docker-registry-default.192.168.99.104.nip.io docker-registry 5000-tcp None Nevertheless, I'm trying to get access on that registry, but I've not been able to figure out what's wrong: docker login -p ngRslZJYJ40WxBA6YQbE5nMDK1Gh-cSWgnJCKR4EJ2I docker-registry-default.192.168.99.104.nip.io -u unused This command keeps stuck. 回答1: If the route is configured with

Openshift node.js: do I need to load ssl certificates in the web console or in the application?

此生再无相见时 提交于 2019-12-13 04:59:52
问题 In order to run HTTPS on my node.js application, I load the certificates within my application. It works fine on my laptop. I am now pushing my work on OpenShift, but the app does not work anymore (ligatures.net). The Openshift [documentation][1] says certificates can be loaded via the web console. So do I need to load my SSL certificates within my application or should I rely on the web console instead? 回答1: You need to load the ssl certificates in the OpenShift web console, as the ssl

Django and OpenShift static files can't be found

梦想与她 提交于 2019-12-13 04:59:37
问题 So I followed this tutorial: https://github.com/rancavil/django-openshift-quickstart/wiki/Tutorial-How-create-an-application-with-Django-1.6-on-Openshift and I tried to add a static image to the default home.html page and it just won't find it. HTML: {% load static %} <html> <head> </head> <body> <img src="{% static 'Logo_Trans.png' %}"> <div class="left"></div> <div class="right"> <p>is coming soon</p> </div> </body> </html> All other files are as listed in the repo given. 回答1: I've found