Build Scalable Web Application with Meteor Framework Hosted on Their Website
As Meteor is Open Source, we can deploy it in two ways :
- Hosting at the Project’s Server with HTTPS subdomain (like Heroku, OpenShift PaaS) for Free
- Hosting Meteor on Own Web Server
The first way is explained in brief on this paragraph. This is quite easy. Simply point to this URL :
Sign up and create your named application. For example, if your application’s name is
abhishekghosh, probably you will love to point towards :
Just for an Example application, this is the way :
curl https://install.meteor.com | sh
# Make a copy of the example app
meteor create --example leaderboard
# Deploy it, `abhishekghosh` is your App's name
meteor deploy abhishekghosh.meteor.com
Quite easy, right?
Build Scalable Web Application with Meteor Framework Hosted on Own Server
Bundle your app on localhost using :
meteor bundle deploy.tar.gz
to make a file called deploy.tar.gz in your meteor directory containing your project. Spin up a Server (on Rackspace Cloud or something like that) and Install node.js. Upload your project and uncompress it :
tar -xzvf bundle.tar.gz
Note : Node.js installation has not been shown here.
rm -r fibers
npm install email@example.com
Get MongoDB installed and test it :
node MONGO_URL=mongodb://dbuser:dbpassword@dbhost:dbport/meteor ROOT_URL=http://yourwebsite.com app.js
Install Forever :
sudo npm install forever -g
forever start MONGO_URL=mongodb://dbuser:dbpassword@dbhost:dbport/meteor ROOT_URL=http://yourwebsite.com app.js
Another easy way is to run a script to deploy Meteor on EC2 (or your own server).
Note : You can use Rackspace DevOps Automation Service, it has Meteor as managed service.
Follow the Author of this article :