codeuino / social-platform-donut-backend

Donut API:
http://donut-api-prod.codeuino.org/
GNU General Public License v3.0
24 stars 57 forks source link

Ansible Playbook for deployment on Digital Ocean #195

Closed ksraj123 closed 3 years ago

ksraj123 commented 4 years ago

Ansible Playbook for deployment on Digital Ocean Linked frontend PR: https://github.com/codeuino/social-platform-donut-frontend/pull/628


Problem

An Ansible playbook wanted upon whose execution Donut frontend and backend would be deployed onto a digital ocean droplet.

Solution of problem

Ansible playbook created.

Type of Change

Checklist

vaibhavdaren commented 4 years ago

linked frontend https://github.com/codeuino/social-platform-donut-frontend/pull/628

ksraj123 commented 4 years ago

@vaibhavdaren suggested changes made, Please review again and merge. Thanks

vaibhavdaren commented 4 years ago

Nice work Champ @ksraj123 🥇 👍

vaibhavdaren commented 3 years ago

Merge after adding how to run on localhost?

ksraj123 commented 3 years ago

This playbook uses nginx to serve the built and bundled frontend. Would this be right approach to setup donut locally? As the contributors wont be able to see the changes they have made unless they re-execute the playbook. Also, I guess it might result in a lot of issues of the user already has some version of dependencies installed on his local machine. I think we can merge this for now, and create a separate playbook for localhost which uses Docker (as there would be little to none network overhead with Docker on localhost) I am working on revamping the Dockerfiles for frontend and backend and a playbook to install docker, create the organisation and executing the required commands to start donut. This would allow a development setup to be started with a single command which would allow contributors make and test their changes easily. Thanks

vaibhavdaren commented 3 years ago

Note:- what localhost setup should do [1] mongodb [2] npm [3] clone repo