launch.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. "FLASK_DEBUG": "1",
  17. "GEVENT_SUPPORT": "True"
  18. },
  19. "args": [
  20. "run",
  21. "--host=0.0.0.0",
  22. "--port=5001",
  23. ]
  24. },
  25. {
  26. "name": "Python: Celery",
  27. "type": "debugpy",
  28. "request": "launch",
  29. "python": "${workspaceFolder}/api/.venv/bin/python",
  30. "cwd": "${workspaceFolder}/api",
  31. "module": "celery",
  32. "justMyCode": true,
  33. "envFile": ".env",
  34. "console": "integratedTerminal",
  35. "env": {
  36. "FLASK_APP": "app.py",
  37. "FLASK_DEBUG": "1",
  38. "GEVENT_SUPPORT": "True"
  39. },
  40. "args": [
  41. "-A",
  42. "app.celery",
  43. "worker",
  44. "-P",
  45. "gevent",
  46. "-c",
  47. "1",
  48. "--loglevel",
  49. "info",
  50. "-Q",
  51. "dataset,generation,mail,ops_trace,app_deletion"
  52. ]
  53. },
  54. ]
  55. }