Ansible scripts for end to end setup of a parse server also ready for migration and production
The scripts here follow the steps in How To Host Parse Server tutorial series by Brennen Bearnes from DigitalOcean Community.
At the end you will get a server with the followings installed:
- TLS/SSL enabled Mongodb Server
- TLS/SSL enabled Parse Server
- Parse Dashboard
Before starting you need:
- ansible installed workstation (i.e. your laptop)
- an Ubuntu14.04 server with root access (i.e. a droplet from Digital Ocean)
- A domain name pointing at the server
It is easy! Check this page: http://ansible-tips-and-tricks.readthedocs.io/en/latest/ansible/install/
Tested with Ansible version 2.1.1. So it is recommended!
The scripts have no dependency on DigitalOcean, you can use any cloud provider.
But DigitalOcean is a great choice for developers, like us!
If you do not have an account, you can register with my referal link and start with a $10 credit.
- Clone this repository:
git clone https://github.com/turkenh/ansible-parse.git
- Get submodules
cd ansible-parse
git submodule init
git submodule update
- Install dependencies
ansible-galaxy install -r requirements.yml
Create an Ubuntu 14.04 64 bit droplet on DigitalOcean and copy its ip.
Update domain record with that ip for the domain you intend to use. (Make sure you set digitalocean nameservers from your domain providers control panel before)
Edit group_vars/all file for yourself and update hosts file with the ip of your droplet. Then run "ansible-playbook setup-parse.yml"
Copy the mongodb conn string in the previous step and start migration for your app on Parse.com
Go back to terminal where you started ansible installation and press "enter" to continue.
Go to <your_domain_name>:4040 and enter "admin/admin" (unless you changed it with parse_dashboard_user and parse_dashboard_password variables). Once you are ok with the data, go back to parse.com and finalize migration.