Add one-command Linux run script with self-contained Redis and open CORS#4
Add one-command Linux run script with self-contained Redis and open CORS#4
Conversation
…allow-all-origins Co-authored-by: itsfuad <49100463+itsfuad@users.noreply.github.com>
|
@copilot could not run properly, server-1 | Connecting to Redis |
|
@itsfuad The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
No Linux-friendly way existed to spin up the server in one command — Redis had to be provisioned separately, and Socket.io CORS always enforced a fixed
clienturlregardless ofdevMode.Changes
run.sh(new)Single executable entry point for Linux VMs. Detects Docker Compose v2 plugin or v1 standalone and runs
docker compose up --build.docker-compose.yml(new)redisservice:redis:alpinewith aredis-cli pinghealth-check; server waits onservice_healthyserverservice: builds from existingdockerfile, exposes:5000, injects env vars:host=redis— service-name DNS resolutiondevMode=true— enables open CORS on both HTTP and WebSocket layersserver/libs/websockets.ts(modified)devModewas already respected by the HTTP middleware inapiServer.tsbut ignored by the Socket.io server, which always usedorigin: [clienturl]. Now both layers share the same behaviour:💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.