Will there eventually be a section on scaling a meteor app?
This would be nice, even if it was just a high-level view of what to expect (and research) down the road, and not as in-depth and actionable as some of the other chapters.
It may also head-off the myriad of “can meteor scale?” posts on this forum and stack overflow.
Yeah we really want to have something like this! There are a couple of things in the pipeline, specifically we want to write down some of the stuff we have learned from working with developer subscription customers. @nim was working on some of this stuff, will be good to know people are interested!
Is there a guide somewhere on how to edit my deployed application? Lets say I deploy my application but later decide to go back and change a piece of code or even need to finish my development process by testing certain things on the server itself. Losing collection data and restarting the server is fine with the current project I am working with.
the deploy on meteor is too hard, its a good idea create a meteor package for google cloud computer engine, and a package like mup to easy configurantion and deploy
Yeah this is definitely an opportunity for someone to step in and make a name for themselves by making deployment to different cloud services super easy!
There’s an issue with this code. The regex doesn’t compile:
WebApp.rawConnectHandlers.use(function(req, res, next) {
// this is the problematic line:
if (req._parsedUrl.pathname.match(/\.(ttf|ttc|otf|eot|woff|font\.css|css)$/) {
res.setHeader('Access-Control-Allow-Origin', /* your hostname, or just '*' */);
}
next();
});
Sadly my regex is not strong and I’m not sure what the issue is.
Another issue I’ve just run into while using the CDN is the option to have a fallback to the regular site if the CDN doesn’t load the file properly.
If you have a site with 25 servers and you do an update, it will take a while to update all of them. If someone then comes to the site during the update and Amazon tries to fetch the JS for the site from your domain it might not be able to retrieve it. It depends on what Meteor instance Cloudfront connects to as to which files will be available.
This also happens if you only try to update the code for some servers, but not all of them. I think I’ll post this in its own topic now.
Any idea what has changed in deploying apps in meteor 1.4? I recently updated my app from 1.2.1 to latest meteor and all JS files are not bundled to together after deployment.
meteor deploy --architecture os.linux.x86_64
copy bundle to server
meteor npm install in /programs/server folder
node main.js
Before I got nicely bundled CSS and JS files but now I have JS file for every package.
Thanks for the reply. I noticed they are talking about minifying server side code. In my case all the client side code is not bundled together. I have verified that other meteor sites are serving single js and css file to browser so there must be something wrong with the way I deployed my app.