Skip to content

Commit

Permalink
debug port
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed Mar 11, 2024
1 parent d14191c commit c5ad0ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 02-app-service-nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

## How to deploy

```
```bash
cd 02-app-service-nodejs
zip release.zip ./* -r
az webapp deploy --resource-group rg-azure-note-ep2 --name thaitype-azure-note-ep2 --src-path ./release.zip --type zip --async true
# az webapp deploy --resource-group rg-azure-note-ep2 --name thaitype-azure-note-ep2 --src-path ./release.zip --type zip --async true
az webapp config appsettings set --resource-group rg-azure-note-ep2 --name thaitype-azure-note-ep2 --settings WEBSITE_RUN_FROM_PACKAGE="1"
az webapp deployment source config-zip --resource-group rg-azure-note-ep2 --name thaitype-azure-note-ep2 --src /release.zip
```

## How to cancel deployment
Expand Down
2 changes: 2 additions & 0 deletions 02-app-service-nodejs/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import helmet from 'helmet';
import compression from 'compression';
import { config } from './config.js';

console.log(`Running using port ${config.port}`);

const app = express();

app.use(morgan('combined'));
Expand Down

0 comments on commit c5ad0ba

Please sign in to comment.