Reputation: 235
I needed to make a little change to my javascript file on my deployed asp mvc website on azure website. So I redeployed everything and when I open the website and check the resource files, I saw the javascript is changed. Nevertheless, the website behaviour did not seem to change. It acted just like the old javascript told it to do. What might be the problem, and the solution of it?
The change works on localhost though.
Additional Information:
I bundled the javasript through asp MVC bundling system. Here is the code I changed:
$('#welcome-messages ul').bxSlider({
mode: 'vertical',
auto: true,
minSlides: 1,
responsive: true,
touchEnabled: true,
pager: false,
controls: false,
useCSS: false,
pause: 10000 // HERE
});
to
$('#welcome-messages ul').bxSlider({
mode: 'vertical',
auto: true,
minSlides: 1,
responsive: true,
touchEnabled: true,
pager: false,
controls: false,
useCSS: false,
pause: 3000 // TO HERE
});
If you wanna see the minified file that the asp MVC made and attached to the website:
$("#welcome-messages ul").bxSlider({mode:"vertical",auto:!0,minSlides:1,responsive:!0,touchEnabled:!0,pager:!1,controls:!1,useCSS:!1,pause:1e3});
In summary, I set the PAUSE time for each slide into 3 seconds, from previously 10 seconds. Yet, the website is still behaving 10 seconds pause even though the javasript is changed.
I also wonder, how can I explore the files that I uploaded to azure website? In other web hosters, they usually have, file manager, or using ftp. Btw, can we also access azure website root folders using ftp?
Upvotes: 2
Views: 909
Reputation: 136356
Regarding not seeing the latest file, please check if the browser is not caching the files. Try again by deleting the browser cache.
I also wonder, how can I explore the files that I uploaded to azure website? In other web hosters, they usually have, file manager, or using ftp. Btw, can we also access azure website root folders using ftp?
If you deployed your application by using a publish profile file, open that file in a text editor. You will see FTP credentials in that file (see sample file contents below)
<publishData> <publishProfile profileName="mytestwebsite - Web Deploy" publishMethod="MSDeploy" publishUrl="mytestwebsite.scm.azurewebsites.net:443"
msdeploySite="mytestwebsite" userName="$mytestwebsite" userPWD="<cryptic password>"
destinationAppUrl="http://mytestwebsite.azurewebsites.net"
SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com">
<databases/> </publishProfile> <publishProfile profileName="mytestwebsite - FTP" publishMethod="FTP" publishUrl="ftp://waws-prod-blu-015.ftp.azurewebsites.windows.net/site/wwwroot"
ftpPassiveMode="True" userName="mytestwebsite\$mytestwebsite"
userPWD="<cryptic password>"
destinationAppUrl="http://mytestwebsite.azurewebsites.net"
SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com">
<databases/> </publishProfile> </publishData>
You can download this file by visiting "Dashboard" section of your Azure Website in Azure Portal.
Upvotes: 1