Book Image

Heroku Cookbook

By : Mike Coutermarsh
Book Image

Heroku Cookbook

By: Mike Coutermarsh

Overview of this book

Heroku is a Platform as a Service that enables developers to rapidly deploy and scale their web applications. Heroku is designed for developer happiness, freeing developers from doing system administrative tasks such as configuring servers and setting up load balancers. Developers are able to focus on what they do best, building web applications, while leaving the details of deployment and scaling to the experts at Heroku. This practical guide is packed with step-by-step solutions to problems faced by every production-level web application hosted on Heroku. You'll quickly get comfortable with managing your Heroku applications from the command line and then learn everything you need to know to deploy and administer production-level web applications.
Table of Contents (17 chapters)
Heroku Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Sharing and collaboration


We can invite collaborators through both the web dashboard and the CLI. In this recipe, we'll learn how to quickly invite collaborators through the CLI.

How to do it…

To start, let's open a terminal and navigate to the Heroku application that we would like to share, using the following steps:

  1. To see the current users who have access to our application, we can use the sharing command:

    $ heroku sharing
    === load-tester-rails Access List
    [email protected]  owner
    [email protected]             collaborator
    
  2. To invite a collaborator, we can use sharing:add:

    $ heroku sharing:add [email protected]
    Adding [email protected] to load-tester-rails as collaborator... done
    

    Note

    Heroku will send an e-mail to the user we're inviting, even if they do not already have a Heroku account.

  3. If we'd like to revoke access to our application, we can do so with sharing:remove:

    $ heroku sharing:remove [email protected]
    Removing [email protected] from load-tester...