openshift

Openshift V2 - Custom Cartridge Permission denied opening port

拟墨画扇 提交于 2019-12-25 09:36:16
问题 I'm trying to listen on a port in open shift, but I'm getting Permission denied. I am using a fork of the Wildfly 8.2.1 Cartridge: 2016-12-31 13:24:06,016 INFO [com.hazelcast.instance.DefaultAddressPicker] (MSC service thread 1-8) [LOCAL] [name] [3.5.4] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [127.0.0.1] 2016-12-31 13:24:06,074 SEVERE [com.hazelcast.instance.DefaultAddressPicker] (MSC service thread 1-8) [LOCAL] [name] [3.5.4] ServerSocket bind has

Send an outbound POST request using HTTPS on Openshift/Heroku

家住魔仙堡 提交于 2019-12-25 07:36:42
问题 It seems like all outbound requests (e.g. http.request(…) , restify.post(…) ) send to an https:// URL are being converted to http:// for some reason (OpenShift proxying?). How can I call an external API and make sure I hit the HTTPS URL instead of the HTTP one? Here's a concrete example. This call to the StubHub API works perfectly when I run it from localhost , but as soon as I run it in an OpenShift or Heroku NodeJS container/dyno, I get forced to http://api.stubhub.com/ and accordingly get

perl on php application on openshift

牧云@^-^@ 提交于 2019-12-25 07:06:20
问题 Hey Openshift dudes: is there any new facility to run a perl script (i.e. a Perl cartridge) inline with a PHP web application on openshift (high-availability mode)? Or do I simply need to add a separate Perl application and just point it to the MYSQL database I've put in the PHP application. The Perl is just for ETL against that database. Thanks! 回答1: If you are trying to run a command line Perl script, then you can just call it from PHP or CRON, all languages are available to all gears, the

Unable to push changes to git openshift

蓝咒 提交于 2019-12-25 06:58:22
问题 Hi guys I could do that but not anymore i.e. I could upload changes to openshift git. I have tried resetting git repo, push by force but no success. Here is the log that I get through: Amits-MacBook-Pro:api $ git push origin master --force Counting objects: 33, done. Delta compression using up to 4 threads. Compressing objects: 100% (32/32), done. Writing objects: 100% (33/33), 1.46 MiB | 0 bytes/s, done. Total 33 (delta 16), reused 0 (delta 0) remote: Postgres already stopped remote:

Error when trying to create a new JBOSS OpenShift project

我只是一个虾纸丫 提交于 2019-12-25 06:48:06
问题 I am trying to have a play around with openshift, but am running into a config issue at the first hurdle. i have RedHatJBOSS Developer Studio 8.0.0 installed, and have the JBOSS Integration and SOA Development Plugin installed. I also have an openshift user account and can login just fine to their website. Basically, when I select the create openshift project from the JBoss central page, and enter my valid openshift credentials and pres next, it tries to connect and immediately throws an

Openshift transfer app from one domain to another?

烈酒焚心 提交于 2019-12-25 06:39:38
问题 So I've got an app in one domain lets say it has the following url: http://app-domain1.rhcloud.com and I want to move it to my other domain so the url would be http://app-domain2.rhcloud.com is there a way of transferring the app domain with out pulling it down deleting the old app and re-uploading it to the new domain ? Both domains exist before I've started, I own the source domain and I'm shared but not the owner of the target domain. 回答1: Edit based on your edit: Assuming you only want to

OpenShift runs same container twice when it should run two different ones inside pod

不羁岁月 提交于 2019-12-25 03:34:54
问题 I want OpenShift 3.10 to create a pod ( console ) comprising two containers ( api and console ). The relevant description in the application template (under dc.spec.template.spec.containers ) for DeploymentConfig console looks like this: containers: - image: console:api imagePullPolicy: Always name: api terminationMessagePolicy: File - image: console:console imagePullPolicy: Always name: console ports: - containerPort: 80 protocol: TCP terminationMessagePolicy: File oc describe is/console

PHP CodeIgniter application not opening any page except default controller

假如想象 提交于 2019-12-25 03:32:47
问题 My website was hosted on domain seeingtheworld.org and my htaccess was as follows: php_value upload_max_filesize 1024M php_value post_max_size 1024M php_value max_execution_time 2700 php_value max_input_time 2700 Options +FollowSymlinks RewriteEngine On RewriteBase /seeingtheworld RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] This is the link working fine.

Can I run Grunt/Gulp on my PHP 5.4 cartridge?

别说谁变了你拦得住时间么 提交于 2019-12-25 03:26:46
问题 I love the idea of OpenShift but I want to be able to run a JavaScript task runner on deployment. I've noticed NPM is available but whenever I try to install my package.json file or npm install grunt , I get the following error: Please try running this command again as root/Administrator. Is there a way to get this working on a PHP 5.4 cartridge? Any help would be greatly appreciated. 回答1: It should be possible... although it would be rather difficult. The reason is being is because when a

JavaMail from OpenShift: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted

倾然丶 夕夏残阳落幕 提交于 2019-12-25 03:06:18
问题 I have an application deployed on OpenShift, from which I need to send email to and from a single Google account. With the application deployed locally, it works perfectly; however, when trying the same with the application deployed on OpenShift, I get the following authorisation error: 19:23:16,265 ERROR [stderr] (default task-2) javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at https://support.google.com/mail/answer/14257 wn10sm1673177wjc