meteor - Having issues with meteorjs app when running with mongodb on localhost -



meteor - Having issues with meteorjs app when running with mongodb on localhost -

i having issues meteorjs app working on. working client , using dedicated server our app's deployment. server has php installed , running apache server (a php app live on server). server running version of centos.

i bundled meteor app , uploaded on server using cpanel access (it not root level access). created ssh key , logged server using ssh access.

i used export command set mongo_url mongodb://localhost:27017/<db-name> (version 2.6.3 of mongodb in installed on server) , port 3000. here ran app using node bundle "pm2".

now issue when app runs accesses database data.

the request made client side. the server receives request (seen in live log) the server fetches info db , logs in terminal. but takes somewhere around 10-15 seconds send info client.

there not commands or computation between logging info fetched server , returning client.

but if alter mongo uri instance of mongolab, works fine , there no delays. client prefers mongo runs on dedicated server.

as programmer know hard reply question limited info , no hands-on debugging. hoping else experienced issue , able resolve. installed mongodb on server without farther configurations. need install farther packages or configurations?

you need set mongo_oplog_url enable oplog tailing feature. when oplog tailing disabled takes around 10-15 seconds send info client.

export mongo_oplog_url this.

mongo_oplog_url=mongodb://localhost/local

mongodb meteor

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -