Skip to content

Deploy command should either build or not build consistently #23

@johnpapa

Description

@johnpapa

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

ng new hello-world --defaults
cd hello-world
ng add @azure/ng-deploy
ng run hello-world:deploy

The app builds and then deploys.

Now change something in the app. Then run ...

ng run hello-world:deploy

Browser to the site in Azure. Notice that what is deployed does not contain your changes. It appears that the deploy command is not building if something already exists in the dist/ folder.

Expected behavior
I expected that the deploy command would have always re-built the angular app first or never rebuild it. Options:

  1. always rebuild before deploying ng build --prod
  2. never rebuild before deploying. but this would cause an error or the results i mention above.
  3. prompt the user to rebuild

I like 1 or 3.

Thoughts?

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions