sachinbhutani / meteor-openshift

Meteor 1.2 cartridge to run meteor applications on OpenShift
MIT License
27 stars 8 forks source link

How to test remote Meteor? #8

Open richardmarais opened 8 years ago

richardmarais commented 8 years ago

I just built and deployed Meteor as suggested. From the logs below, it looks successful.

remote: Initiating MeteorShim
remote: Starting NodeJS cartridge
remote: *********** Meteor Environment ************
remote: MONGO_URL IS: mongodb://127.10.247.2:27017/
remote: ROOT_URL IS: http://mynodeapp-easyjobs.rhcloud.com
remote: PORT: 8080
remote: BIND_IP: 127.10.247.1
remote: DDP_URL: http://mynodeapp-easyjobs.rhcloud.com:8000
remote: ************ Starting NodeJS 0.10.40 SERVER  ************
remote: Thu Sep 08 2016 09:43:15 GMT-0400 (EDT): Node server started on 127.10.247.1:8080 ...
remote: Application is already running
remote:
remote:   - Using Node.js version 0.10.40, checking app URI ...
remote:   - test URI = http://mynodeapp-easyjobs.rhcloud.com/env
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success

When I try the following, I get a timeout or 404.

http://mynodeapp-easyjobs.rhcloud.com:3000/ (timeout)
http://mynodeapp-easyjobs.rhcloud.com:8080/ (timeout)
http://mynodeapp-easyjobs.rhcloud.com:8000/ (404)

When I run everything locally and the Ionic2 app accesses Meteor with the default http://localhost:3000, it works. So I changed the Ionic2 app to point to the remote server.

The Ionic2 App I have is trying to access it on http://mynodeapp-easyjobs.rhcloud.com:3000/8080/8000 unsuccessfully.

Question

How do I check if Meteor is running? What should I make my Ionic2 (Angular2) app point to?

Thanks

vbnlohani commented 8 years ago

Hello richard, Did you find out the problem and any solution to this. Actually, I am also facing the same problem.

Sachin, Please help us clear this problem as soon as possible.

Thanks and Regards, Vaibhav

richardmarais commented 8 years ago

Hi, I couldn't get Meteor to work on Openshift so ended up deploying it to Heroku.  They also have a free service, which I have had no problems with so far. Good luck. Richard On 24 Sep 2016 9:50 PM, Vaibhav Lohani notifications@github.com wrote:Hello richard, Did you find out the problem and any solution to this. Actually, I am also facing the same problem.

Sachin, Please help us clear this problem as soon as possible.

Thanks and Regards, Vaibhav

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

b-long commented 8 years ago

I'm also interested in running meteor via OpenShift & Docker, but haven't tried it yet. Recommend researching how other meteor apps use Docker, e.g. : https://github.com/wekan/wekan/blob/devel/Dockerfile