Skip to main content

Quickly set up and tear down Heroku apps!

Project description

https://img.shields.io/travis/grampajoe/happy.svg https://img.shields.io/coveralls/grampajoe/happy.svg https://img.shields.io/scrutinizer/g/grampajoe/happy.svg

Quickly set up and tear down Heroku apps!

Quickly starting

Add an app.json manifest that looks kinda like this:

{
  "name": "My App Thing",
  "repository": "https://github.com/helloitsme/thingy",
  "env": {
    "FROBULATION_LIMIT": {
      "description": "Maximum frobulations per lunar cycle.",
      "value": "7"
    }
  },
  "addons": [
    "pusher"
  ]
}

Push that to your thing’s master branch on GitHub so Heroku can find it.

Log in with the Heroku toolbelt , then do this:

$ pip install happy
$ happy up
Creating app... butt-man-123
Building... done
It's up! :) https://butt-man-123.herokuapp.com

That’s it! You made a temporary app with all the fixins, which you can use to continuously integrate or whatever you want to do.

Then, you can get rid of it like:

$ happy down
Destroying app butt-man-123... done
It's down. :(

Commands

up

Brings up a Heroku app.

The app name is stored in a file called .happy in the working directory so happy can find it later.

  • --auth-token

    (optional) Heroku API auth token. If this is not given, happy assumes you’re logged in through Heroku CLI, i.e. your token is stored in your netrc file.

  • --tarball-url

    (optional) URL of the tarball containing app.json. If this is not given, happy tries to infer it from an app.json file in the current directory.

down

Brings down a Heroku app.

The app name is read from a file called .happy in the working directory.

  • --auth-token

    (optional) Heroku API auth token. If this is not given, happy assumes you’re logged in through Heroku CLI, i.e. your token is stored in your netrc file.

Running the tests

  1. Install tox with pip install tox.

  2. Run the tests with tox.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

happy-1.1.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file happy-1.1.0.tar.gz.

File metadata

  • Download URL: happy-1.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for happy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d1061e11648507595fde8f5d02e0464c2c0cf4fe8e6af4eec78ca161de363747
MD5 b7eabf5b249d9e1ce24fedeec79871c8
BLAKE2b-256 c21e152f342e4d6e52b93c65ebb2a52954108ca10c5215e7c6351281d2ffedc6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page