Web deployment tool - deployment

I would like to know if in IIS manager, when I export an application, there is a way to save components selected so, when I export next time, to select them by default (like appHostConfig). Thank you.

Unfortunately that is not possible today, if you are constantly using it you should consider using the command line instead that will easily allow you to save those in an external file and run them as frequently as needed without having to specify everything again.

Related

create ssh-compatible vscode extension

I often run scripts on remote machines and sometimes create custom html dashboards to monitor progress. I was wondering if something like that would be better done taking advantage of vscode's ssh extension, which I use to edit files remotely anyway.
For example, I'd like to display a custom panel with information derived from a list of files in the remote server. My traditional approach would be to run a web server to get the file contents in some custom json format and create a custom html client to display the data. Would it be possible to skip the web server part and instead create some custom vscode extension that gets the data via some ssh api?
It might be your case to use LogTail extension to fetch your data and then proceed with your desired display method.
VSCode Marketplace for LogTail: https://marketplace.visualstudio.com/items?itemName=tiansin.logtail
I hope it helps :)

How to create an extension command similar to VSCode's File: New File command?

I want to create a command that has the same flow where once you create the command it will take you to the explorer window and allow you to type the name of the file there. Is there a way to do that with the existing vscode API?
Update: The flow of creating the file through the explorer was done by executing 'explorer.newFile'. I want to take the user's input, create 2 template files, and then delete the original file created by 'explorer.newFile'. It does not seem like 'explorer.newFile' returns info about the new file so I created a filewatcher to do this which makes for choppy creation/deletion of the files. Is there a way to make this smoother?
No, not as VSCode 1.15. Your best bet currently is to either try reusing the built-in create file command (explorer.newFile) or to use the quick picker API to achieve a similar flow

Custom ListView will replace already existing Listview

I have built an addon and that has custom listview for Contacts module.
The filepath is /custom/modules/Contacts/views/view.list.php.This file has listViewProcess() function with my custom code.
Installing the addon will copy this file.
But if someone already had this file it will be replaced.
How can I overcome this?
Overall, you can't automatically overwrite and respect the existing file at the same time. Your best bet is probably to use a pre_execute script to display a warning/explanation of what is happening to that file. If you're planning to support Sugar's OnDemand service, that's about all you can do. If you're CE-only or not worried about OnDemand, though, you could use a file_exists check and adjust your warning or abort mission, maybe even back-up the existing file.

How To Change target paths for thousands of products at once

I am using Magento 1.7.1 and find that magento has automatically added ugly urls like www.afd.com/catalog/product/view/id/2728/name.html.
When I go into catalog > URL Rewrite, I see the target paths for all my products listed in the above totally unfriendly way with id numbers displaying.
How do I fix this en masse?
Thanks.
-TM
Try to do it by using a .csv file. You can create a php file which will run outside your project and do the expected changes via a csv file. Also hopes this will help to grab an idea. http://www.solvingmagento.com/magento-url-rewrites/
Refresh all indexes in magento, here is instrucion http://www.inmotionhosting.com/support/edu/magento/102-customizing-magento/how-to-reindex-your-magento-website, then flush all cache. Then magento should use Url Rewrites. If doesn't work make sure that you heve proper settings in
System->Configuration->Web->Search Engine Optimization

Teamsite Cleanup

I was wondering what is the best way to do a clean up of autonomy teamsite7. I basically have loads of dcr files that are not in use anymore and want to delete these. Whats the best way to search through the CMS and identify what .page and dcrs are published on the live site and what is not used and can be deleted so I dont have to go through manually?
Template-based pages use extended attributes to associate a generated page with a DCR and Presentation template.
In the past, I have written Perl scripts that would generate a list of the active DCRs. You can then compare the DCRs in the workarea to that list and delete those that aren't on the list.
Basically set it up as a cron job that cleaned up the "templatedata" directory once a month.
If I had this particular scenario, I think my first thought would be to run a simulated comparison deployment with OpenDeploy to generate the list of files that were in the workarea but not on the webserver. You could parse the resulting log with a perl script (or whatever your favorite language is) to then remove those files.