How to migrate node express website to ubuntu droplet and deploy with git.

July 23, 2016 232 views
Node.js DigitalOcean Ubuntu 16.04

I can't seem to find the resources on how to migrate an express website that is currently working on my localhost to a digitalocean droplet. I don't have a firm grasp on what extra is needed on the remote server or how to get the webserver running. I've searched through many tutorials but somehow they don't seem to have the answer to something that seems basic but I'm guessing is fairly complicated.

1 Answer

Not necessarily complicated. The MEAN one-click may save you some time: (MEAN = MongoDB, Express, Angular, Node.js) DigitalOcean provides the MEAN stack pre-configured on an Ubuntu server.

Take a read through this tutorial:

Especially relevant to your needs is the deploying your own section.

If you would prefer to start from scratch, there's also the How to install Mean on Ubuntu 14.04 tutorial.

Does that help?

MEAN is a quick start boilerplate for creating applications based on MongoDB, Node.js, Express, and AngularJS. DigitalOcean's MEAN One-Click Application pre-installs the Mean.js implementation of the stack. It also comes with the front-end package manager bower and grunt, a tool for automating JavaScript tasks. Together, these tools provide a solid base to build your web application.
Have another answer? Share your knowledge.