Skip to content

Conversation

@jojozhuang
Copy link
Collaborator

@jojozhuang jojozhuang commented Nov 8, 2025

Configuration

1. Build and Deploy

In the deployment pipeline, add steps to install dependencies and build the Angular project:

npm install
npm run build

2. Configure Output Folder

Since only the static files are required for the Angular application, set the build output folder (./dist/browser) as the artifact to upload for the deployment job. This helps reduce the size of the deployment package.

3. Clean Previous Deployment

Before deploying a new version, clean the existing files in the Azure App Service wwwroot directory.

Enable automatic cleanup by adding:

with:
  clean: true

4. Startup Command

Angular’s build output (dist) contains only static files, while Azure Linux App Service expects a running web server. Therefore, we need to configure a Startup Command to serve the Angular app.

  1. Go to Azure Portal → Your App Service
  2. Configuration → General settings
  3. Find Startup Command (Linux only)
  4. Set it to:
npx serve -s . -l 8080
image

Inspection

Debug Console

If you need to inspect the deployed files on Azure, you can use the Debug Console at: https://text-compare2.scm.azurewebsites.net/DebugConsole .

Or you can find it through the following steps:

  1. Go to Azure Portal → Your App Service
  2. Development Tools → Advanced Tools
  3. Click Go → opens Kudu
  4. Click Bash on the top
image

Test

Deployment should be complete. You can verify it at https://text-compare2.azurewebsites.net/.

image

@jojozhuang jojozhuang temporarily deployed to fix-deployment-to-text-compare2 - text-compare PR #62 November 8, 2025 16:52 — with Render Destroyed
@netlify
Copy link

netlify bot commented Nov 8, 2025

Deploy Preview for text-compare ready!

Name Link
🔨 Latest commit ffa8c62
🔍 Latest deploy log https://app.netlify.com/projects/text-compare/deploys/690f75366ddcd600080b2d9c
😎 Deploy Preview https://deploy-preview-62--text-compare.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 8, 2025

Deploy Preview for text-compare ready!

Name Link
🔨 Latest commit 5c914a4
🔍 Latest deploy log https://app.netlify.com/projects/text-compare/deploys/690f8212838a9e00081f346f
😎 Deploy Preview https://deploy-preview-62--text-compare.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jojozhuang jojozhuang temporarily deployed to fix-deployment-to-text-compare2 - text-compare PR #62 November 8, 2025 17:46 — with Render Destroyed
@jojozhuang jojozhuang merged commit e8826d8 into main Nov 8, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants