From 7ddd6591051dffbb8197df97ba3841752f08356e Mon Sep 17 00:00:00 2001 From: Simon Jakesch Date: Wed, 20 Dec 2023 20:31:16 -0600 Subject: [PATCH 1/2] adding java sample to readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ab9b076..07ac5c1 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,5 @@ This is the companion repository for the [Azure Container Apps code-to-cloud qui This backend Album API sample is available in other languages: -| [C#](https://github.com/azure-samples/containerapps-albumapi-csharp) | [Go](https://github.com/azure-samples/containerapps-albumapi-go) | [Python](https://github.com/azure-samples/containerapps-albumapi-python) | -| -------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------ | +| [C#](https://github.com/azure-samples/containerapps-albumapi-csharp) | [Go](https://github.com/azure-samples/containerapps-albumapi-go) | [Python](https://github.com/azure-samples/containerapps-albumapi-python) | [Java](https://github.com/azure-samples/containerapps-albumapi-java) | +| -------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------- | From 92ff267ce09c740cd93e162dd02224eb4b5c24b5 Mon Sep 17 00:00:00 2001 From: Simon Jakesch Date: Wed, 20 Dec 2023 20:31:44 -0600 Subject: [PATCH 2/2] changing port from 3500 to 8080 --- src/Dockerfile | 2 +- src/app.js | 1 - src/bin/www | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index 5b2539e..c49e18c 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /usr/src/app COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"] RUN npm install --production --silent && mv node_modules ../ COPY . . -EXPOSE 3500 +EXPOSE 8080 RUN chown -R node /usr/src/app USER node CMD ["npm", "start"] diff --git a/src/app.js b/src/app.js index 12ab32c..8c9c8f7 100644 --- a/src/app.js +++ b/src/app.js @@ -3,7 +3,6 @@ var path = require("path"); var logger = require("morgan"); var router = require("./routes/index"); -const appPort = process.env.PORT || 3000; var app = express(); //enable cors diff --git a/src/bin/www b/src/bin/www index 59a4208..39557b5 100644 --- a/src/bin/www +++ b/src/bin/www @@ -12,7 +12,7 @@ var http = require("http"); * Get port from environment and store in Express. */ -var port = normalizePort(process.env.PORT || "3500"); +var port = normalizePort(process.env.PORT || "8080"); app.set("port", port); /**