feat: cant deploy. Don't know why it is 4000 port is in use
This commit is contained in:
parent
ae10219db3
commit
18a1dc2de5
|
@ -10,6 +10,7 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ npm-debug.log*
|
|||
.DS_Store
|
||||
.idea/
|
||||
bun.lockdb
|
||||
.devcontainer/devcontainer.json
|
||||
|
|
|
@ -3,6 +3,7 @@ import { Server } from '@hocuspocus/server';
|
|||
import * as Sentry from "@sentry/node";
|
||||
|
||||
const port = process.env.PORT || 4000;
|
||||
|
||||
const authorizer = new Authorizer({
|
||||
clientID: process.env.AUTHORIZER_CLIENT_ID || '',
|
||||
authorizerURL: process.env.AUTHORIZER_URL || 'https://auth.discours.io',
|
||||
|
@ -14,7 +15,6 @@ Sentry.init({ dsn: process.env.GLITCHTIP_DSN });
|
|||
|
||||
const startServer = async () => {
|
||||
const server = await Server.configure({
|
||||
port: process.env.PORT || 4000,
|
||||
async onConnect({ connection }) {
|
||||
connection.requiresAuthentication = true;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user