Skip to content

Commit

Permalink
change to port 5000 when rails_env = production
Browse files Browse the repository at this point in the history
  • Loading branch information
robguthrie committed Jul 17, 2024
1 parent 96d28c2 commit dceb67e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hocuspocus.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import { SQLite } from "@hocuspocus/extension-sqlite";
import { Logger } from "@hocuspocus/extension-logger";

const url = (process.env.APP_URL || `https://${process.env.CANONICAL_HOST}`) + '/api/hocuspocus'
const port = (process.env.RAILS_ENV == 'production') ? 5000 : 4444

console.log("hocuspocus auth url: ", url);

const server = Server.configure({
port: 4444,
port: port,
timeout: 30000,
debounce: 5000,
maxDebounce: 30000,
Expand Down

0 comments on commit dceb67e

Please sign in to comment.