config.local.js 861 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. 'use strict';
  2. /**
  3. * 开发环境配置,覆盖 config.default.js
  4. */
  5. module.exports = (appInfo) => {
  6. const config = {};
  7. /**
  8. * Cross-language service
  9. * 跨语言服务
  10. * 如果有cmd参数,则执行该命令且需要指定 directory
  11. */
  12. config.cross = {
  13. python: {
  14. enable: false,
  15. name: "pyapp",
  16. cmd: "python",
  17. directory: "./python",
  18. args: ["./main.py", "--port=7074"],
  19. stdio: "ignore",
  20. appExit: true,
  21. },
  22. };
  23. /**
  24. * 开发者工具
  25. */
  26. config.openDevTools = {
  27. mode: "undocked",
  28. };
  29. /**
  30. * 应用程序顶部菜单
  31. */
  32. config.openAppMenu = true;
  33. /**
  34. * jobs
  35. */
  36. config.jobs = {
  37. messageLog: true,
  38. };
  39. /**
  40. * 远程模式-web地址
  41. */
  42. config.remoteUrl = {
  43. enable: true,
  44. url: 'http://tkk.pubdata.cn'
  45. };
  46. return {
  47. ...config,
  48. };
  49. };