Changes in file is not reflecting after deployment | Community
Skip to main content
Level 3
October 16, 2024
Solved

Changes in file is not reflecting after deployment

  • October 16, 2024
  • 2 replies
  • 1074 views

I have created multiple components that are running fine on my local system. I deployed my app once and undeployed after some time. Now I  added one more component that is running fine locally but when I deployed the app it showed me the last deployed app.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sarav_prakash

I too faced similar issue. So instead `aio app deploy`, I changed to `aio app deploy --force-build`

 

Here is deploy commands 

So without `--force-build`, it is NOT compiling web-assets even when they had changes. Adding the `--force-build` was then building and changes were served. 

2 replies

tmj
Adobe Employee
Adobe Employee
October 16, 2024

Hi @shubhamag2 - you have not provided us enough information to help you. Please provide way more information.

sarav_prakash
Community Advisor
sarav_prakashCommunity AdvisorAccepted solution
Community Advisor
October 16, 2024

I too faced similar issue. So instead `aio app deploy`, I changed to `aio app deploy --force-build`

 

Here is deploy commands 

So without `--force-build`, it is NOT compiling web-assets even when they had changes. Adding the `--force-build` was then building and changes were served. 

Level 3
October 17, 2024

 Thanks @sarav_prakash ,It is working fine now