I have deployed a web role on Windows Azure. It runs on one instance only. I set up the remote desktop to access it.
At the moment I need to change only two lines in a JavaScript file in the website.
I connected to the instance then …
- navigated to the E:\approot\Scripts
- opened the target file, edited it
Changes didn’t propagate. (I download the old content)
Then I tried to
- Stop the IIS in web role
- Edit the file
- Start the IIS again
Changes didn’t propagate (When I open the file in the RD I see my new content, but when open via http I see the old content)
Then I tried
- Opened RD
- Navigated to the file and edited it
- Rebooted the instance via Windows Azure control panel
- Again connected to RD
I still see the old content in the remote server
My question is what I should do in order to change only one file without redeploying the whole package?
My guess is you’re editing the wrong location. Look in
e:\sitesroot\0(or something like that). When in doubt, open the IIS config UI and find out exactly where the website content lives.EDIT: But as Dennis pointed out, changes you make this way don’t persist, so use this only for testing.