Skip to content

Commit

Permalink
try without pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Nov 22, 2023
1 parent c8ae370 commit 6167162
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo-server/demo-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ const wss = new WebSocket.Server({ server })

wss.on('connection', (conn, req) => setupWSConnection(conn, req, { gc: req.url.slice(1) !== 'prosemirror-versions' }))

server.listen(port)
server.listen(port, '0.0.0.0')

console.log(`Listening to http://localhost:${port} ${production ? '(production)' : ''}`)
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ swap_size_mb = 0
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
min_machines_running = 1
processes = ["app"]
[http_service.concurrency]
type = "requests"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"dist:all": "npm run dist:demo-server && npm run dist:cm && npm run dist:cm6 && npm run dist:pm && npm run dist:pm-versions && npm run dist:quill && npm run dist:monaco",
"lint": "standard",
"deploy": "fly deploy --ha=false",
"pm2": "cd demo-server && pm2-runtime start ./demo-server.js",
"pm2_alt": "cd demo-server && pm2-runtime start ./demo-server.js",
"pm2": "cd demo-server && npm start",
"container:build": "docker build . -t yjs-demos",
"container:run": "docker run -p 3000:3000 --name yjs-demos yjs-demos",
"container:stop": "docker stop yjs-demos && docker remove yjs-demos"
Expand Down

0 comments on commit 6167162

Please sign in to comment.