feat: cant deploy. Don't know why it is 4000 port is in use
Some checks failed
CI/CD / deploy (push) Waiting to run
CI/CD / test (push) Has been cancelled

This commit is contained in:
Stepan Vladovskiy 2024-04-09 13:56:31 -03:00
parent ae10219db3
commit 18a1dc2de5
3 changed files with 3 additions and 1 deletions

View File

@ -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
View File

@ -4,3 +4,4 @@ npm-debug.log*
.DS_Store .DS_Store
.idea/ .idea/
bun.lockdb bun.lockdb
.devcontainer/devcontainer.json

View File

@ -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;
}, },