Skip to content

Commit fe86e97

Browse files
committed
📝 docs: add Heroku management commands to documentation
- Add new Heroku Management section with all task commands - Update versions to Django 5.2 and Wagtail 7.2 in README - Add code:lint, code:check, dependencies:security, dependencies:tree - Rename upgrade:package to dependencies:upgrade:package
1 parent 3765956 commit fe86e97

File tree

3 files changed

+73
-4
lines changed

3 files changed

+73
-4
lines changed

CLAUDE.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,41 @@ task heroku:database:backups
173173
task heroku:database:run-backup
174174
```
175175

176+
### Heroku Management
177+
178+
```bash
179+
# View logs in real-time
180+
task heroku:logs
181+
182+
# Restart the application
183+
task heroku:restart
184+
185+
# Django shell on Heroku
186+
task heroku:shell
187+
188+
# Bash shell on Heroku
189+
task heroku:bash
190+
191+
# Run migrations on Heroku
192+
task heroku:migrate
193+
194+
# Show environment variables
195+
task heroku:config
196+
197+
# Show dyno status
198+
task heroku:ps
199+
200+
# Show deployment history
201+
task heroku:releases
202+
203+
# Rollback to previous release
204+
task heroku:rollback
205+
206+
# Maintenance mode
207+
task heroku:maintenance:on
208+
task heroku:maintenance:off
209+
```
210+
176211
### Conference Management
177212

178213
```bash
@@ -213,6 +248,7 @@ Key variables (see `development.env` / `production.env`):
213248
- `REDISCLOUD_URL`: Redis connection
214249
- `MEETUP_KEY`: Meetup.com API key
215250
- `PGDATABASE`, `PGUSER`, `PGPASSWORD`, `PGHOST`: PostgreSQL credentials for Docker
251+
- `HEROKU_APP`: Heroku application name (set in Taskfile.yaml)
216252

217253
### Static Files
218254

DEVELOPMENT.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,17 @@ task meetup:update # Update meetups
13841384
# Heroku
13851385
task heroku:database:backups # List backups
13861386
task heroku:database:run-backup # Create backup
1387+
task heroku:logs # View logs in real-time
1388+
task heroku:restart # Restart application
1389+
task heroku:shell # Django shell on Heroku
1390+
task heroku:bash # Bash on Heroku
1391+
task heroku:migrate # Run migrations on Heroku
1392+
task heroku:config # Show environment variables
1393+
task heroku:ps # Show dyno status
1394+
task heroku:releases # Show deployment history
1395+
task heroku:rollback # Rollback to previous release
1396+
task heroku:maintenance:on # Enable maintenance mode
1397+
task heroku:maintenance:off # Disable maintenance mode
13871398
```
13881399

13891400
### B. Admin URLs

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python Ireland Website
22

3-
Website for Python Ireland (python.ie / pycon.ie) community, built with Django 5.0 and Wagtail CMS 6.2. Manages meetups, sponsors, speakers, and conference sessions.
3+
Website for Python Ireland (python.ie / pycon.ie) community, built with Django 5.2 and Wagtail CMS 7.2. Manages meetups, sponsors, speakers, and conference sessions.
44

55
## Prerequisites
66

@@ -93,18 +93,36 @@ make docker-tests # Alternative test command
9393

9494
# Code Quality
9595
task code:format # Format code with ruff
96+
task code:lint # Lint and fix issues
97+
task code:check # Check without changes
9698

9799
# Dependencies
98100
task dependencies:compute # Recompile dependency files
99101
task dependencies:outdated # List outdated packages
100102
task dependencies:upgrade # Upgrade all dependencies
101-
task upgrade:package PACKAGE=django # Upgrade specific package
103+
task dependencies:upgrade:package PACKAGE=django # Upgrade specific package
104+
task dependencies:security # Check for security vulnerabilities
105+
task dependencies:tree # Show dependencies tree
102106

103107
# Database Operations (Heroku)
104108
task database:pull # Pull production database to local
105109
task database:push # Push local database to production
106110
task database:reset # Reset local DB with production copy
107111
task heroku:database:backups # View Heroku backups
112+
task heroku:database:run-backup # Create a new backup
113+
114+
# Heroku Management
115+
task heroku:logs # View logs in real-time
116+
task heroku:restart # Restart the application
117+
task heroku:shell # Django shell on Heroku
118+
task heroku:bash # Bash shell on Heroku
119+
task heroku:migrate # Run migrations on Heroku
120+
task heroku:config # Show environment variables
121+
task heroku:ps # Show dyno status
122+
task heroku:releases # Show deployment history
123+
task heroku:rollback # Rollback to previous release
124+
task heroku:maintenance:on # Enable maintenance mode
125+
task heroku:maintenance:off # Disable maintenance mode
108126

109127
# Conference Management
110128
task pycon:import:sessionize # Import from Sessionize Excel
@@ -154,8 +172,12 @@ python pythonie/manage.py test pythonie --settings=pythonie.settings.tests --ver
154172
```bash
155173
# Format code with ruff
156174
task code:format
157-
# or: toast code:format
158-
# or: python -m ruff format pythonie
175+
176+
# Lint and fix issues
177+
task code:lint
178+
179+
# Check without changes
180+
task code:check
159181
```
160182

161183
## Environment Variables

0 commit comments

Comments
 (0)