deployment in meteor

Pablo Chiappetti

@p4bloch

meteor sandbox

meteor deploy mysite.meteor.com

Meteor-up

npm install -g mup
mup init
mup setup
mup deploy

https://github.com/arunoda/meteor-up

FEATURES

  • Auto-Restart if the app crashed (using forever)
  • Auto-Start after the server reboot (using upstart)
  • Support for settings.json

configuracion por defecto

  • your app lives at /opt/<appName>/app
  • start <appName> and stop <appName>
  • logs are located at: /var/log/upstart/<appName>.log
  • the database is named <appName>

Load balancing / proxying

NGINX

server {
    listen 80;
    server_name wachi-app.com;

    location / {
        proxy_pass       http://localhost:8200;
    }
}
server {
    listen 80;
    server_name otra-wachi-app.com;

    location / {
        proxy_pass       http://localhost:8300;
    }
}

cluster

https://github.com/meteorhacks/cluster

Deployment en Meteor

By Pablo Chiappetti

Deployment en Meteor

  • 1,193