From 2e1c043b4c8f053d85529f8e0b3bd3ec533b2f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sat, 28 Jan 2023 10:15:36 +0100 Subject: [PATCH] server: change default port --- README.md | 2 +- server.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f59b66..bf9b44b 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ mysql --user=partdb --password=password --database=partdb < schema.sql ~~~ put the database access information in `credentials.json` and run `server.rb`. -now go to http://localhost:4244 and you are ready to use it. +now go to http://localhost:4245 and you are ready to use it. the port is defined in `server.rb`. use a proxy web server to handle the authentication, TLS, compression, ... diff --git a/server.rb b/server.rb index acc9ffd..ef9c496 100755 --- a/server.rb +++ b/server.rb @@ -27,7 +27,7 @@ PUBLIC = "public" # folder name for part attachments (in PUBLIC) ATTACHMENTS = "attachments" # port for this service -PORT = 4244 +PORT = 4245 raise "database information #{CREDENTIALS} do not exist" unless File.file? CREDENTIALS