config.local.js 1.2 KB

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