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