meteor deployment planning

9

Click here to load reader

Upload: randell-hynes

Post on 10-May-2015

263 views

Category:

Technology


0 download

DESCRIPTION

Meteor.js

TRANSCRIPT

Page 1: Meteor Deployment Planning

Meteor.jsPlan for Deployment to Production

Page 2: Meteor Deployment Planning

2

CLI• Node.js/NPM• Meteorite/Atmosphere > GitHub• Meteor > Native Packages• Cordova > Apache/3rd Party Plugins with Plugman• Eclipse IDE > Android SDK & Terminal plugin

• Xcode IDE

Plan for Meteor.js Deployment to Production

Page 3: Meteor Deployment Planning

3

Discussion Points• Development vs Production• Automated Deployment• Hosts• Scaling

Plan for Meteor.js Deployment to Production

Page 4: Meteor Deployment Planning

4

Dev vs Prod• New Meteor project is open and insecure.• Includes autopublish and insecure packages.• > meteor remove autopublish insecure• Add accounts-ui, et. al, for identity & access

management:o Subscribe > Publish collections.o Meteor.call > Meteor.methods.o HTTP.call to Rest APIs.o oAuth connections to user data.o DDP.connect from other Meteor clients.

Plan for Meteor.js Deployment to Production

Page 5: Meteor Deployment Planning

5

Deployment• Node.js app• meteor bundle --directory test• Add env. Variables:

o MONGO_URL,o ROOT_URL, o Port (optional, defaults to 80), o MONGO_OPLOG_URL (if required)o METEOR_SETTINGS (if required).

Plan for Meteor.js Deployment to Production

Page 6: Meteor Deployment Planning

6

Hosts• Meteor.com > meteor deploy <sitename>

--password --settings • Modulus.io > modulus deploy (detects meteor

and runs demeteorizer)• AWS > DYI with Bitnami AMI, Other AMI?• MS Azure ???

Plan for Meteor.js Deployment to Production

Page 7: Meteor Deployment Planning

7

ScalingMongoDB

o Built-in for DEVo Built-in for Moduluso MongoLab, MongoHQo Oplog tailing > Watch log of latest changes.o Replica set cluster with auto failover.

Servero Load Balancingo Distribution

Plan for Meteor.js Deployment to Production

Page 8: Meteor Deployment Planning

8

Package Freeze• Make a plan to freeze a copy of the Meteorite

packages used.

Plan for Meteor.js Deployment to Production

Page 9: Meteor Deployment Planning

9

Links• http://docs.meteor.com/#meteordeploy• http://www.modulus.io• http://blog.modulus.io/demeteorizer• http://www.monglab.com• http://aws.amazon.com/• https://bitnami.com/stack/nodejs/cloud/azure• http://

vmdepot.msopentech.com/Vhd/Show?vhdId=42518

Plan for Meteor.js Deployment to Production