How to deploy the meteor in centos7.We installed the meteor and meteorjs packages and nodejs. But we unable to open the production link.Please help me.
How to deploy meteor app in production server using Centos7
2.4k views Asked by vamsi kr At
1
You should build your app with "meteor build --directory " command. With this command you will get a bundle directory. Compress that bundle folder and upload it to the server. Example
Extract in on the server, then
Example meteor app config in supervisord.conf file. All the meteor app specific config is in the 'environment' variable on this configuration. There will be other entries in your supervisord.conf file. You will have to add this one for your meteor app. For more info on supervisord, visit http://supervisord.org
For nginx configuration, this is my configuration concerning meteor app (this is not the whole config file just the part necessary for meteor):
For more detailed information on setting up nginx, you can check out digitalocean documentation: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-meteor-js-application-on-ubuntu-14-04-with-nginx
When everything is ok:
I am running meteor app on port 3003 and redirecting requests to that port using nginx. You might want to add an iptables rule to drop connections to port 3003, so that only nginx can connect to port 3003. Here are two iptables rules to deny mongodb and port 3003 connections from public networks.