Giter Club home page Giter Club logo

heroku-lockdown's Introduction

Heroku-Lockdown

Heroku-Lockdown is a plugin for the heroku gem for people using heroku in production. If you are running more than one heroku server for the same app (maybe myapp-production, and myapp-staging), you might be worried about typing;

heroku db:reset --myapp-production

when you meant

heroku db:reset --myapp-staging

which would be a disaster. This plugin should help prevent that with a simple config file, ~/.herokurc

Installation

  • Assuming you have the heroku gem installed:

    heroku plugins:install git://github.com/latentflip/heroku-lockdown.git

Usage

  • Create/edit ~/.herokurc

  • Add a line for each command and app pair you want to prevent, like so:

    #This will prevent db:reset being run on --app myapp-production
    protect myapp-production db:reset

Warning

  • I accept no responsibility for this not actually working :). So test it with some safe commands (perhaps db:pull) first.

  • Only tested so far on heroku setups where you have to add –app to commands. (i.e. more than one heroku app for a single git repo). If commands like: ‘heroku db:pull’ run without requiring the –app switch this may not work.

heroku-lockdown's People

Contributors

latentflip avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.