Code Monkey home page Code Monkey logo

wxcloud's People

Contributors

cubelrti avatar darkyzhou avatar molunerfinn avatar nlrx-wjc avatar starkwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wxcloud's Issues

使用Weixin Cloudbase Docker Extension 这个vscode 插件调试的是用,直接Start能够正常使用,但是使用Live Coding的时候,就会报错

使用的环境是
M1 pro 芯片的MacOS 13.4版本, 使用的 Apple 芯片的 docker for Mac

使用Weixin Cloudbase Docker Extension 这个vscode 插件调试的时候,直接Start能够正常使用,但是使用Live Coding的时候,就会报错

[nodemon] failed to start process, "/wxcloudrun-wxcomponent/main" exec not found

image
image

  • Executing task: docker-compose up

[+] Building 0.0s (0/0)

[+] Running 1/0

✔ Container wxcloud_hl-wxcomponent Running 0.0s

Attaching to wxcloud_hl-wxcomponent

wxcloud_hl-wxcomponent | [nodemon] 2.0.15-weixin-cloudbase

wxcloud_hl-wxcomponent | [nodemon] to restart at any time, enter rs

wxcloud_hl-wxcomponent | [nodemon] watching path(s): */

wxcloud_hl-wxcomponent | [nodemon] watching extensions: java,js,mjs,json,ts,cs,py,go

wxcloud_hl-wxcomponent | [nodemon] starting /wxcloudrun-wxcomponent/main

wxcloud_hl-wxcomponent | sh: /wxcloudrun-wxcomponent/main: not found

wxcloud_hl-wxcomponent | [nodemon] failed to start process, "/wxcloudrun-wxcomponent/main" exec not found

wxcloud_hl-wxcomponent | [nodemon] Error

wxcloud_hl-wxcomponent | at Bus. (/snapshot/nodemon/lib/nodemon.js:158:25)

wxcloud_hl-wxcomponent | at Bus.emit (node:events:538:35)

wxcloud_hl-wxcomponent | at ChildProcess. (/snapshot/nodemon/lib/monitor/run.js:190:11)

wxcloud_hl-wxcomponent | at ChildProcess.emit (node:events:526:28)

wxcloud_hl-wxcomponent | at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

wxcloud_hl-wxcomponent exited with code 0

  • Terminal will be reused by tasks, press any key to close it.

is it possible to create a docker image for the live coding proxy instead of creating proxy in VSCode extension?

As some dev env is using VScode Devcontainer, creating an image and bind the target container's port would be a solution, besides it wont mess up the exist Dockerfile and docker-compose config. Here's my suggestion

version: "3"
services:
  app:
    build:
      context: .
      build: Dockerfile
    ports:
      - 3000:3000
    labels:
      ...weixinLabels


  wexinProxy:
    images: someimage
    ports:
      - 27082:80
    environments: []

通过命令行更新服务配置时,`envParams`处理逻辑缺陷致使值带`=`的环境变量更新不正确

['cpu', 'mem', 'minNum', 'maxNum', 'envParams', 'customLog'].forEach(key => {
if (flags[key] !== undefined) {
config[key] = flags[key];
if (key === 'envParams') {
config[key] = JSON.stringify(
flags[key]!.split('&').reduce((prev, cur) => {
prev[cur.split('=')[0]] = cur.split('=')[1];
return prev;
}, {})
);
}

858dcde 调整前的行为一致,无法支持 a=IA==&b=true 环境参数的准确更新。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.