launch.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Python: Flask",
  6. "type": "debugpy",
  7. "request": "launch",
  8. "python": "${workspaceFolder}/api/.venv/bin/python",
  9. "cwd": "${workspaceFolder}/api",
  10. "envFile": ".env",
  11. "module": "flask",
  12. "justMyCode": true,
  13. "jinja": true,
  14. "env": {
  15. "FLASK_APP": "app.py",
  16. "GEVENT_SUPPORT": "True"
  17. },
  18. "args": [
  19. "run",
  20. "--host=0.0.0.0",
  21. "--port=5001",
  22. ]
  23. },
  24. {
  25. "name": "Python: Celery",
  26. "type": "debugpy",
  27. "request": "launch",
  28. "python": "${workspaceFolder}/api/.venv/bin/python",
  29. "cwd": "${workspaceFolder}/api",
  30. "module": "celery",
  31. "justMyCode": true,
  32. "envFile": ".env",
  33. "console": "integratedTerminal",
  34. "env": {
  35. "FLASK_APP": "app.py",
  36. "FLASK_DEBUG": "1",
  37. "GEVENT_SUPPORT": "True"
  38. },
  39. "args": [
  40. "-A",
  41. "app.celery",
  42. "worker",
  43. "-P",
  44. "gevent",
  45. "-c",
  46. "1",
  47. "--loglevel",
  48. "info",
  49. "-Q",
  50. "dataset,generation,mail,ops_trace,app_deletion"
  51. ]
  52. },
  53. ]
  54. }