Code Monkey home page Code Monkey logo

db-fork's Introduction

db-fork

Script to automate the creation of a database based on a template in Postgres.

Only works if postgres does not have a password.

Environment variables

POSTGRES_BIN_PATH // /Applications/Postgres.app/Contents/Versions/9.6/bin/
POSTGRES_BIN_NAME // createdb
POSTGRES_DATABASE_TEMPLATE_NAME // development
POSTGRES_DATABASE_HOST // localhost
POSTGRES_DATABASE_USERNAME // postgres

Remote call (using default variable)

$ wget -qO- https://raw.githubusercontent.com/moi-solutions/db-fork/1.1/createdb.sh | bash

Hook (Optional)

This hook call before command on git checkout.

Call this command on root path from local repository.

cd .git/hooks/ && wget -O post-checkout https://git.io/v7s7X && chmod +x post-checkout && cd ../../

db-fork's People

Contributors

paulomcnally avatar

Watchers

 avatar James Cloos avatar Oscar Cortez avatar José Ney Guerrero avatar

Forkers

paulomcnally

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.