Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forgepackages/forge-heroku
Streamlined Heroku deploy for Django
https://github.com/forgepackages/forge-heroku
django forgepackages heroku
Last synced: about 1 month ago
JSON representation
Streamlined Heroku deploy for Django
- Host: GitHub
- URL: https://github.com/forgepackages/forge-heroku
- Owner: forgepackages
- License: mit
- Created: 2022-06-18T01:54:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-01T19:07:32.000Z (over 1 year ago)
- Last Synced: 2024-09-29T09:08:26.015Z (about 2 months ago)
- Topics: django, forgepackages, heroku
- Language: Python
- Homepage: https://www.forgepackages.com/docs/forge-heroku
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# forge-heroku
Deploy a Django project to Heroku with minimal configuration.
This package is specifically designed to work with the [Forge Heroku Buildpack](https://github.com/forgepackages/heroku-buildpack-forge).
```console
$ 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:```yaml
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](https://devcenter.heroku.com/articles/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](https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/#run-manage-py-check-deploy) (many related to the settings above) and will prevent deploying your app if any checks fail.
You can also [create your own checks](https://docs.djangoproject.com/en/4.1/topics/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.