launch.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "Python: Celery",
  9. "type": "python",
  10. "request": "launch",
  11. "module": "celery",
  12. "justMyCode": true,
  13. "args": ["-A", "app.celery", "worker", "-P", "gevent", "-c", "1", "--loglevel", "info", "-Q", "dataset,generation,mail"],
  14. "envFile": "${workspaceFolder}/.env",
  15. "env": {
  16. "FLASK_APP": "app.py",
  17. "FLASK_DEBUG": "1",
  18. "GEVENT_SUPPORT": "True"
  19. },
  20. "console": "integratedTerminal"
  21. },
  22. {
  23. "name": "Python: Flask",
  24. "type": "python",
  25. "request": "launch",
  26. "module": "flask",
  27. "env": {
  28. "FLASK_APP": "app.py",
  29. "FLASK_DEBUG": "1",
  30. "GEVENT_SUPPORT": "True"
  31. },
  32. "args": [
  33. "run",
  34. "--host=0.0.0.0",
  35. "--port=5001",
  36. "--debug"
  37. ],
  38. "jinja": true,
  39. "justMyCode": true
  40. }
  41. ]
  42. }