Last active
December 24, 2020 20:24
-
-
Save D-Bits/769706795cf918bd4c838abdc186c7ba to your computer and use it in GitHub Desktop.
A template for automate manage.py tasks with the VS Code task runner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Bootstrap Containers", | |
"type": "shell", | |
"command": "docker-compose up", | |
"problemMatcher": [ | |
"$eslint-compact" | |
] | |
}, | |
{ | |
"label": "Shutdown Containers", | |
"type": "shell", | |
"command": "docker-compose down", | |
"problemMatcher": [ | |
"$eslint-compact" | |
] | |
}, | |
{ | |
"label": "Make Migrations", | |
"type": "shell", | |
"command": "docker-compose", | |
"args": [ | |
"exec", | |
"django", | |
"python", | |
"manage.py", | |
"makemigrations", | |
"users", | |
"project" | |
], | |
"problemMatcher": [ | |
"$eslint-compact" | |
] | |
}, | |
{ | |
"label": "Migrate", | |
"type": "shell", | |
"command": "docker-compose", | |
"args": [ | |
"exec", | |
"django", | |
"python", | |
"manage.py", | |
"migrate", | |
], | |
"problemMatcher": [ | |
"$eslint-compact" | |
] | |
}, | |
{ | |
"label": "Bootstrap Django Dev Server", | |
"type": "shell", | |
"command": "docker-compose", | |
"args": [ | |
"exec", | |
"django", | |
"python", | |
"manage.py", | |
"runserver", | |
], | |
"problemMatcher": [ | |
"$eslint-compact" | |
] | |
}, | |
{ | |
"label": "Run Django Tests", | |
"type": "shell", | |
"command": "docker-compose", | |
"args": [ | |
"exec", | |
"django", | |
"python", | |
"manage.py", | |
"test", | |
], | |
"problemMatcher": [ | |
"$eslint-compact" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment