openshift

InvalidProviderToken (403) response

╄→гoц情女王★ 提交于 2020-01-05 04:08:08
问题 node-apn receive InvalidProviderToken (403) response error from APNs. What need I change in configuration to send push message? Apple says: APNs supports only provider authentication tokens that are signed with the ES256 algorithm. Unsecured JWTs, or JWTs signed with other algorithms, are rejected, and your provider server receives the InvalidProviderToken (403) response. Used this tutorial: https://eladnava.com/send-push-notifications-to-ios-devices-using-xcode-8-and-swift-3/ 来源: https:/

Remove an Openshift server from RHC

萝らか妹 提交于 2020-01-05 02:49:27
问题 I'm very confused about this rhc client. I always read about cartridge and apps on tutorials over the interwebs, but what I see when i try to setup rhc e a server . I setup a server in this computer a few months ago. But I never used it. Now I created a new and personal account and I wanted to setup this computer to use rhc but my last setup is stuck there. I tried to rund rhc server remove <server-name> but it says the server is already in use. Asks me to change servers. But I only got one.

unable to deploy nodejs socket io application on openshift

穿精又带淫゛_ 提交于 2020-01-05 02:18:10
问题 I have a simple chat application based on nodejs and socket io. Works fine locally. But i am facing issues in deploying it to openshift. I have read and implemented almost all related threads on Stack Overflow. No progress yet. Client Side(index.html): <script src="/socket.io/socket.io.js"></script> var socket = io.connect("http://www.abcd.com:8000/"); where 'abcd' is an attached domain name to the openshift app. Server Side(index.js): //Express initializes app to be a funciton handler that

Say 'Hello World!' in Openshift with Node.js

北城余情 提交于 2020-01-04 16:57:05
问题 I created an app in Openshift and created a local git repo on my computer. I want to change the default welcome page here: http://nodejs-j4nos.rhcloud.com:3000 and just tell Hello world as this tutorial say. So I removed from local repo the index.html, and modified server.js, pasted in this code below. And commit, and push. I get a long approval, that they accepted my commit. If I good understand I do not have to stop node and start it again, but Openshift do it for me. But as you can see no

Postgres connection refused from Openshift Tomcat 7 cartridge

安稳与你 提交于 2020-01-04 15:56:30
问题 I'm trying to deploy an app on an Openshift Tomcat 7 (JBoss EWS 2.0) cartridge, but I'm getting: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. Here's my datasource config: public class OpenshiftDataConfig { @Inject private Environment environment; @Bean public DataSource dataSource() { HikariDataSource dataSource = new HikariDataSource(); dataSource.setDataSourceClassName("org

Openshift: how to edit scc non-interactively?

房东的猫 提交于 2020-01-04 09:35:09
问题 I am experimenting with openshift/minishift, I find myself having to run: oc edit scc privileged and add: - system:serviceaccount:default:router So I can expose the pods. Is there a way to do it in a script? I know oc adm have some command for policy manipulation but I can't figure out how to add this line. 回答1: You can achieve it using oc patch command and with type json. The snippet below will add a new item to array before 0th element. You can try it out with a fake "bla" value etc. oc

Openshift: how to edit scc non-interactively?

…衆ロ難τιáo~ 提交于 2020-01-04 09:32:32
问题 I am experimenting with openshift/minishift, I find myself having to run: oc edit scc privileged and add: - system:serviceaccount:default:router So I can expose the pods. Is there a way to do it in a script? I know oc adm have some command for policy manipulation but I can't figure out how to add this line. 回答1: You can achieve it using oc patch command and with type json. The snippet below will add a new item to array before 0th element. You can try it out with a fake "bla" value etc. oc

How do I modify the node startup command in Open Shift?

这一生的挚爱 提交于 2020-01-04 06:52:49
问题 I'm using ES6 with babel-node to create my app and I require my app to start with the command babel-node app.js . This command is listed in scripts: start in my package.json so the command npm start runs the correct command. Open shift starts node apps with node + what ever script is set in the main property of your package.json file. In my case its "main": "app.js" . So this command is run node app.js . The server is choking on the first ES6 it encounters which makes sense. I can't figure

How can I deploy my angular 2 app on tomcat or jboss?

和自甴很熟 提交于 2020-01-04 06:52:19
问题 I have built a basic angular 2 app. However I need to deploy it on Jboss or Tomcat as I need to use it along with my Java EE application. Thanks for your help. 回答1: You would use a bundler such as angular-cli or webpack to create the production bundle which is then served by the HTTP server. The bundler creates all required file that go into the htdocs directory. Normally Angular apps are completely decoupled from your backend server so there shouldn't be any JBoss or Tomcat specifics. The

How do I modify the node startup command in Open Shift?

喜欢而已 提交于 2020-01-04 06:51:20
问题 I'm using ES6 with babel-node to create my app and I require my app to start with the command babel-node app.js . This command is listed in scripts: start in my package.json so the command npm start runs the correct command. Open shift starts node apps with node + what ever script is set in the main property of your package.json file. In my case its "main": "app.js" . So this command is run node app.js . The server is choking on the first ES6 it encounters which makes sense. I can't figure