Skip to main content

Work library for Forge

Project description

forge-heroku

Deploy a Django project to Heroku with minimal configuration.

This package is specifically designed to work with the Forge Heroku Buildpack.

$ forge heroku
Usage: forge heroku [OPTIONS] COMMAND [ARGS]...

  Commands for deploying and managing Heroku apps

Options:
  --help  Show this message and exit.

Commands:
  create          Create a new Heroku app with Postgres...
  pre-deploy      Pre-deploy checks for release process
  serve           Run a production server using gunicorn
  set-buildpacks  Automatically determine and set buildpacks
  shell           Open a remote Django shell

Default Procfile

When you use the Forge buildpack, Heroku will automatically set up a Procfile for you. Here's what it does:

web: forge heroku serve
release: forge heroku pre-deploy

If you need to customize your Procfile, simply add one to your repo!

Deploy checks

In the Heroku "release" phase we run manage.py check --deploy --fail-level WARNING as part of forge heroku pre-deploy.

This runs a number of Django system checks (many related to the settings above) and will prevent deploying your app if any checks fail. You can also create your own checks that will run during this process.

Migrations

The forge heroku pre-deploy will also run manage.py migrate to ensure that your database is up to date.

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

forge_heroku-1.0.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

forge_heroku-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file forge_heroku-1.0.0.tar.gz.

File metadata

  • Download URL: forge_heroku-1.0.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1031-azure

File hashes

Hashes for forge_heroku-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fbbafc2a724b0b1acc4eb01fd42829f8c72b484102936aa84f8a5917e5d231e1
MD5 9aded6aab3f67de78a5d993d1069baf5
BLAKE2b-256 5373d5006a40c16402d7cd3e5636e73078923fc8208a85e0eb09c18f8760f38f

See more details on using hashes here.

File details

Details for the file forge_heroku-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: forge_heroku-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1031-azure

File hashes

Hashes for forge_heroku-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdba1a46e545cc412dc9ab58c56007dd6841e7611cdfe66a421fc0e21099b419
MD5 cc5b78ee4f1d5f3c16db7ed871ca825e
BLAKE2b-256 a23dab52f7e4a00e8062663eac3adb2ac8a0de68cd2d23f8715baf22c7fcc00c

See more details on using hashes here.

Supported by

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