4 ms·
The biggest downside to meteor for me is that nobody has settled on a good way to use it in production. We currently have a meteor app in production and it has
by extrapickles 11y ago
The biggest downside to meteor for me is that nobody has settled on a good way to use it in production.
We currently have a meteor app in production and it has a few large clients running off of <$100/mo in server. A majority of our production costs are a large amount of redundancy and backups, not the actual server the clients connect to.
With docker it can be very simple to deploy meteor apps as release mode meteor is just a standard node.js app. It takes us about a minute to go from dev->staging (and less for stage->prod as the image is already built). Depending on your app, you can get away with a fairly tiny server (2 cores, 1-2gb ram is fine for demo/pilot).
Starter docker file (note: this is designed to be simple vs best):
FROM node:0.10
ADD meteor.tar.gz /meteor
RUN (cd /meteor/bundle/programs/server && npm install)
EXPOSE 80
CMD ["node", "/meteor/bundle/main.js"]
#Put your meteor.tar.gz file in the same folder as this (name this as Dockerfile), then build and run. Will bind onto port 80
#Build Command: docker build -t meteor-prod ./
#Run command: docker run -d --restart=always -e MONGO_URL=YOUR_MONGO -e PORT=80 -e ROOT_URL=http://YOUR_EXTERNAL_HOST http://YOUR_EXTERNAL_HOST -p 80:80 meteor-prod