Git Product home page Git Product logo

heroku-clone's Introduction

heroku-clone Build Status

Allows you to quickly create new heroku apps as clones of existing apps together with the list of collaborators and config variables.

Installation

Add the heroku gem plugin:

$ heroku plugins:install git://github.com/eckardt/heroku-clone.git
heroku-clone installed

Usage

You'll start with an existing app which has some custom config variables and collaborators set

$ heroku apps:create
Creating dry-oasis-7199... done, stack is cedar
http://dry-oasis-7199.herokuapp.com/ | [email protected]:dry-oasis-7199.git
Git remote heroku added
$ heroku sharing:add [email protected]
Adding [email protected] to dry-oasis-7199 collaborators... done
$ heroku config:set FOO=bar
Setting config vars and restarting dry-oasis-7199... done, v3
FOO: bar

Now, creating an exact copy of this app is easy

$ heroku clone:create
Creating dry-oasis-7199-clone-19b3... done, stack is cedar
http://dry-oasis-7199-clone-19b3.herokuapp.com/ | [email protected]:dry-oasis-7199-clone-19b3.git
Copying [email protected] to dry-oasis-7199-clone-19b3 collaborators... done
Copying config vars from dry-oasis-7199 and restarting dry-oasis-7199-clone-19b3... done, v3

You can use the new app as a staging server or for quickly trying out another branch

$ git push [email protected]:dry-oasis-7199-clone-19b3.git new-feature-which-needs-to-be-tested:master
[...]
-----> Launching... done, v6
   http://dry-oasis-7199-clone-19b3.herokuapp.com deployed to Heroku

To [email protected]:dry-oasis-7199-clone-19b3.git
 * [new branch]      new-feature-which-needs-to-be-tested -> master

Possible uses

You can use this for quickly spinning up new staging servers without needing to set up everything from scratch every time you need a new server. In a continuous integration workflow you can easily deploy and test individual branches manually after the automatic tests have passed.

See also

For easily removing apps when they are not needed anymore you can use the https://github.com/ddollar/heroku-cleanup plugin.

License

MIT License

Author

Stephan Eckardt [email protected]

heroku-clone's People

Stargazers

 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.