Skip to content

Commit

Permalink
Merge pull request #5 from simonjj/update-port-and-readme
Browse files Browse the repository at this point in the history
Update port to 8080 to not conflict with Dapr anymore
  • Loading branch information
simonjj authored Jan 24, 2024
2 parents 280438a + 92ff267 commit 2011d69
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
| -------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------- |
2 changes: 1 addition & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 0 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down

0 comments on commit 2011d69

Please sign in to comment.