forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split streaming server from web server (mastodon#24702)
- Loading branch information
1 parent
e6ba39b
commit ecc1027
Showing
5 changed files
with
108 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
web: env PORT=3000 RAILS_ENV=development bundle exec puma -C config/puma.rb | ||
sidekiq: env PORT=3000 RAILS_ENV=development bundle exec sidekiq | ||
stream: env PORT=4000 yarn run start | ||
stream: env PORT=4000 yarn workspace @mastodon/streaming start | ||
webpack: bin/webpack-dev-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "@mastodon/streaming", | ||
"license": "AGPL-3.0-or-later", | ||
"packageManager": "yarn@4.0.1", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"description": "Mastodon's Streaming Server", | ||
"private": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mastodon/mastodon.git" | ||
}, | ||
"scripts": { | ||
"start": "node ./index.js" | ||
}, | ||
"dependencies": { | ||
"dotenv": "^16.0.3", | ||
"express": "^4.18.2", | ||
"ioredis": "^5.3.2", | ||
"jsdom": "^22.1.0", | ||
"npmlog": "^7.0.1", | ||
"pg": "^8.5.0", | ||
"pg-connection-string": "^2.6.0", | ||
"prom-client": "^15.0.0", | ||
"uuid": "^9.0.0", | ||
"ws": "^8.12.1" | ||
}, | ||
"devDependencies": { | ||
"@types/express": "^4.17.17", | ||
"@types/npmlog": "^4.1.4", | ||
"@types/pg": "^8.6.6", | ||
"@types/uuid": "^9.0.0" | ||
}, | ||
"optionalDependencies": { | ||
"bufferutil": "^4.0.7", | ||
"utf-8-validate": "^6.0.3" | ||
} | ||
} |
Oops, something went wrong.