Report this

What is the reason for this report?

Deploying a Meteor.JS app to digital ocean servers.

Posted on June 6, 2014

Hi!

I am relatively new to server side development. But I am very interested in learning how to deploy my meteor.js app to my digital ocean account.

I am wondering if it would be possible to develop a step-by-step tutorial to guide me through this process?

Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Getting set up with Meteor.JS is simple, just run: <br> <br><pre> <br>curl https://install.meteor.com/ | sh <br>meteor create ~/my_cool_app <br>cd ~/my_cool_app <br>meteor <br></pre> <br> <br>Now the bare bones app is running at http://your.ip.address:3000 <br> <br>There are a number of ways to deploy a Meteor app you developed locally. Check out: <br> <br>http://docs.meteor.com/#deploying <br> <br>If you create a bundle of your app with: <br> <br><pre> <br>meteor bundle myapp.tgz <br></pre> <br> <br>You can copy that to a DigitalOcean droplet and extract it there. You’ll need need node.js and MongoDB installed. You can then extract and run it with: <br> <br><pre> <br>PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js <br></pre> <br> <br>To install node.js see: <br> <br>https://www.digitalocean.com/community/articles/how-to-install-node-js-on-an-ubuntu-14-04-server <br> <br>To install MongoDB, see: <br> <br>https://www.digitalocean.com/community/articles/how-to-install-mongodb-on-ubuntu-12-04 <br> <br>Let us know how it goes!

Use Meteor Up[0]. It it used by many developers to deploy their Meteor app specially on DO. <br> <br> <br>[0] - https://github.com/arunoda/meteor-up

You might also need this command (if you are having a problem running meteorite). Also, remember that you don’t need node or npm, just run the command that Andrew gives above (curl https://install.meteor.com/ | sh) and meteor brings in node and npm.

export PATH=~/.meteor/tools/latest/bin:$PATH

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.