Skip to content

Commit

Permalink
Remove Heroku-specific config and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Oct 30, 2022
1 parent cba4a2b commit 65a7e87
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 129 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Expand Up @@ -50,18 +50,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
REQUIREMENTS: docs/requirements.txt
# deploy:
# needs: test
# runs-on: ubuntu-latest
# environment:
# name: demo
# url: http://demo.baby-buddy.net
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
# steps:
# - uses: actions/checkout@v3
# - name: Deploy demo
# uses: akhileshns/heroku-deploy@v3.12.12
# with:
# heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
# heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
# heroku_email: ${{ secrets.HEROKU_EMAIL }}
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -19,8 +19,8 @@ guess work.

## Demo

A [demo of Baby Buddy](http://demo.baby-buddy.net) is available on Heroku.
The demo instance resets every hour. Login credentials are:
A [demo of Baby Buddy](https://demo.baby-buddy.net) is available. The demo instance
resets every hour. Login credentials are:

- Username: `admin`
- Password: `admin`
Expand Down
42 changes: 0 additions & 42 deletions app.json

This file was deleted.

5 changes: 1 addition & 4 deletions babybuddy/settings/.gitignore
Expand Up @@ -2,11 +2,8 @@
!__init__.py
!base.py
!ci.py
!clever-cloud.py
!development.py
!gitpod.py
!heroku.py
!production.example.py
!railway.py
!render.py
!test.py
!clever-cloud.py
34 changes: 0 additions & 34 deletions babybuddy/settings/heroku.py

This file was deleted.

8 changes: 3 additions & 5 deletions docs/configuration/storage.md
Expand Up @@ -4,8 +4,7 @@

*Default:* `True`

Whether to allow uploads (e.g., of Child photos). For some deployments (Heroku)
this setting will default to False due to the lack of available persistent storage.
Whether to allow uploads (e.g., of Child photos).

## `AWS_ACCESS_KEY_ID`

Expand All @@ -29,9 +28,8 @@ See also: [`AWS_STORAGE_BUCKET_NAME`](#aws_storage_bucket_name)

*Default:* `None`

If you would like to use AWS S3 for storage on ephemeral storage platforms like
Heroku you will need to create a bucket and add its name. See django-storages'
[Amazon S3 documentation](https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html).
If you would like to use AWS S3 for storage you will need to create a bucket and add
its name. See django-storages' [Amazon S3 documentation](https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html).

## `AWS_S3_ENDPOINT_URL`

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Expand Up @@ -6,8 +6,8 @@ guess work.

## Demo

A [demo of Baby Buddy](http://demo.baby-buddy.net) is available on Heroku.
The demo instance resets every hour. Login credentials are:
A [demo of Baby Buddy](http://demo.baby-buddy.net) is available. The demo instance
resets every hour. Login credentials are:

- Username: `admin`
- Password: `admin`
24 changes: 0 additions & 24 deletions docs/setup/deployment.md
Expand Up @@ -40,30 +40,6 @@ export DJANGO_SETTINGS_MODULE="babybuddy.settings.base"
python3 /app/babybuddy/manage.py clearsessions
```

## Heroku

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://dashboard.heroku.com/new?button-url=https%3A%2F%2Fgithub.com%2Fbabybuddy%2Fbabybuddy&template=https%3A%2F%2Fgithub.com%2Fbabybuddy%2Fbabybuddy)

For manual deployments to Heroku without using the "deploy" button, make sure to
create the following settings before pushing:

```shell
heroku config:set DISABLE_COLLECTSTATIC=1
heroku config:set DJANGO_SETTINGS_MODULE=babybuddy.settings.heroku
heroku config:set SECRET_KEY=<CHANGE TO SOMETHING RANDOM>
heroku config:set TIME_ZONE=<DESIRED DEFAULT TIMEZONE>
```

See [Configuration](../configuration/intro.md) for other settings that can be controlled
by `heroku config:set`.

After an initial push, execute the following commands:

```shell
heroku run python manage.py migrate
heroku run python manage.py createcachetable
```

## Clever Cloud

To deploy on [Clever Cloud](https://www.clever-cloud.com), log in to your
Expand Down
2 changes: 1 addition & 1 deletion runtime.txt
@@ -1 +1 @@
python-3.9.13
python-3.9.15

0 comments on commit 65a7e87

Please sign in to comment.