port-4000-env
Some checks failed
CI/CD / test (push) Successful in 9s
CI/CD / deploy (push) Failing after 4s

This commit is contained in:
Untone 2024-02-17 15:20:43 +03:00
parent 07eff63836
commit bebfd46958
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
FROM node:alpine
EXPOSE 4242
EXPOSE 4000
COPY . .
RUN npm install
CMD npm start

View File

@ -9,7 +9,7 @@ const authorizer = new Authorizer({
const startServer = async () => {
const server = await Server.configure({
port: 4242,
port: process.env.PORT || 4000,
async onConnect({ connection }) {
connection.requiresAuthentication = true;
},