Skip to content

Commit

Permalink
Update Landofile
Browse files Browse the repository at this point in the history
- Replace the `cd /app/src &&` pattern with the new `dir` config to set
the workdir of each tooling command.
- Add a restart-runserver tooling command, for quick restarts and
debugging.
  • Loading branch information
hardyoyo authored and Andy Byers committed Jul 21, 2021
1 parent 62f2517 commit 575a598
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,22 @@ tooling:
python:
service: appserver
cmd: python
dir: /app/src
pip:
service: appserver
description: run pip commands to manage Python package installation in this environment
cmd: pip
dir: /app/src
manage:
service: appserver
cmd: cd /app/src && python manage.py
cmd: python manage.py
dir: /app/src
restart-runserver:
service: appserver
description: Quickly restarts the Django runserver process, follows logs, and enables interactive debugging
cmd: killall python || python /app/src/manage.py runserver 0.0.0.0:8000 -v 3
dir: /app/src
user: root
psql:
service: db
cmd: psql -U postgres
Expand Down

0 comments on commit 575a598

Please sign in to comment.