weixincloud / wxcloud Goto Github PK
View Code? Open in Web Editor NEWAll in Serverless. 微信云托管
License: MIT License
All in Serverless. 微信云托管
License: MIT License
使用的环境是
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
[+] 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
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: []
wxcloud/packages/cli/src/commands/service/config.ts
Lines 111 to 121 in 4d0636f
与 858dcde 调整前的行为一致,无法支持 a=IA==&b=true
环境参数的准确更新。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.