sahat / megaboilerplate

Handcrafted starter projects, optimized for simplicity and ease of use.
MIT License
3.83k stars 255 forks source link

Add deployment instructions #69

Open sahat opened 8 years ago

sahat commented 8 years ago

On TODO list.

plainspace commented 8 years ago

Do you have an ETA on the Digital Ocean deployment instructions?

TMcLoone commented 8 years ago

+1

raisiqueira commented 8 years ago

+1

ronal2do commented 8 years ago

+1

sahat commented 8 years ago

From briefly going over the Digital Ocean documentation, the deployment would be similar to AWS EC2. The simplest solution would be to create a Node.js 4 + Ubuntu 16 droplet, SSH into it, git clone your app repo (or manually copy the directory to Digital Ocean via scp), install npm dependencies, start the app with pm2. Your app is now up and running that you can access using your unique URL or a custom domain.

A better solution solution would be to have continuous deployment from your GitHub repository, i.e. make a change, push to GitHub, app is auto-updated. See https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps.

Another solution would be to use Docker, however, I will need to add it to Mega Boilerplate first. I think there is an outstanding issue already to add Docker support.

Depending on people's preference, I can add DO deployment instructions using Docker, GitHub auto deployment, or the most straightforward way of manually SSH-ing into Digital Ocean droplet and starting the Node.js app yourself.

ronal2do commented 8 years ago

Im used https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04 and https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

MobileAppVault commented 8 years ago

Is there any progress on this task for docker deployment implementation?