I am developing portal on Meteor 1.6.0.1 (Blaze) + MongoDB. The server is amazon.
I am having a repository on github (say : project.git).
I have been using test.myproject.com for testing purpose. Everything is working fine.On amazon the path where the code is “/var/www/meteor/myprojecttest” The url is “test.myproject.com”
Recently we have decided to lunch the site in production. But we kept the project different. So the production code is on “/var/www/meteor/myprojectprod” and the url is “myproject.com”
I have worked on the code on my local machine. And committed the code on github.
I have done git pull in both the folders. and deployed the code. The changes are reflected on the test.myproject.com site. whereas same code is pushed in the /var/www/meteor/myprojectprod but changes are not reflected on myproject.com
What can be wrong? I am not able to know. Please help.
First of all, to make sure that you are correctly pulling the same code in both directories, you should do a rm -rf * in both, then pull. Then do that again, while keeping the old files in both.
If you get different results, you might have a local file permission issue. If not, the issue has to do with how you pull the code.
Sounds silly, but are you sure that everything is pointing at what it should be? If I was seeing this, I’d be looking at my IP addresses, etc. to make sure.
If you are able to see the same code in both folders, but in your browser the pages look stale, then this might be an issue of cache invalidation. Are you using an app accelerator, or reverse proxy with caching? E.g. Varnish, NGINX
Then maybe you should give Meteor hosting a try. This is exactly the problem it is meant to solve. See the pricing, and check whether your time is better spent on developing the app / business.
I mean something like: your domain is pointing to 1.2.3.4, but you are uploading changes to 1.2.3.5.
Also, as @illustreets suggested, Galaxy can definitely be cost effective even though it may seem “expensive” compared to other hosting services. I’ve saved countless hours of debugging things like mup, etc. to justify the price.