node.js - Nodejs and Meteor on OpenShift -


i have mobile (ionic 2) chat application following implementation, uses nodejs-0.10 , mongodb 3.2.7 , meteor 1.4.1.1. works on localhost.

now need deploy openshift server. have followed following steps , created server on openshift meteor. connecting git, , can push code server.

i pretty sure meteor server running on openshift, because saw effect on startup logs (via ssh). however, not sure how connect meteor server test it.

enter image description here

the domain nodejs-easyjobs.rhcloud.com (54.208.77.250) on openshift server, can ping successfully.

i using ionic 2 build mobile app. running on android, plan add ios , windows.

i following this tutorial, , runs on localhost. however, not sure configured. guess localhost default, , need change different host if needs be.

if check openshift server (nodejs-easyjobs.rhcloud.com) via ssh, can see contents of meteor bundle directory on server. git pushing code.

the part don't understand is:

  • do need configure meteor differently being on openshift server? or leave is?
  • where configure client (ionic 2) point openshift server?

question:

my question is, how configure mobile app (ionic 2) connect openshift meteor server?

update:

my dir structure:

openshift-appname     .../ionic-apps/nodejs/bundle/server/... meteorapp     .../ionic-aps/myionicapp/api/.meteor/...     .../ionic-aps/myionicapp/api/server/... 

the contents of .../ionic-apps/nodejs cloned on openshift server git.

i followed this tutorial deploy meteor bundle openshift. `

so used following build meteor app:

> cd .../ionic-aps/myionicapp/ > meteor build .../ionic-apps/nodejs --directory --server-only 

as far can see, may wrong, meteor server correct , running on openshift. need know how can ionic2 app access it.

  • step1: find access point meteor server using openshift ip. i.e. nodejs-easyjobs.rhcloud.com (54.208.77.250).
  • step2: configure ionic2 client use this.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -