GithubHelp home page GithubHelp logo

romanstark / ansible-parse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from turkenh/ansible-parse

0.0 1.0 0.0 3.18 MB

Ansible scripts for end to end setup of a parse server also ready for migration and production

License: MIT License

ansible-parse's Introduction

ansible-parse

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.

What you get

At the end you will get a server with the followings installed:

  • TLS/SSL enabled Mongodb Server
  • TLS/SSL enabled Parse Server
  • Parse Dashboard

What you need

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

How to install Ansible

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!

Sign up DigitalOcean

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.

Steps

Step 0 - Prepare workspace

  1. Clone this repository:
git clone https://github.com/turkenh/ansible-parse.git
  1. Get submodules
cd ansible-parse
git submodule init 
git submodule update
  1. Install dependencies
ansible-galaxy install -r requirements.yml

Step 1 - Create Instance

Create an Ubuntu 14.04 64 bit droplet on DigitalOcean and copy its ip.

Step 1 - Create Instance

Step 2 - Update Domain Record

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)

Step 2 - Update Domain Record

Step 3 - Run Ansible Part 1: Prepare For Migration

Edit group_vars/all file for yourself and update hosts file with the ip of your droplet. Then run "ansible-playbook setup-parse.yml"

Step 3 - Run Ansible Part 1: Prepare For Migration

mongo conn

Step 4 - Start Migration

Copy the mongodb conn string in the previous step and start migration for your app on Parse.com

Step 4 - Start Migration

Step 5 - Run Ansible Part 2: Complete Installation

Go back to terminal where you started ansible installation and press "enter" to continue.

Step 5 - Run Ansible Part 2: Complete Installation

Step 6 - Verify Installation & Data

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.

Step 6 - Verify Installation & Data

ansible-parse's People

Contributors

turkenh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.