How to run application as startup task?

I would like to run some windows applications on IDE start: local server and pageant. I added them as external tools and then created an entry in Run/Debug Configurations. I chose PHP HTTP Request as presented below:

 

In Before launch there are two external tools. However sometimes both are fired, but in most of cases only first. Is it because configuration tries to run request to localhost which hasn't been launched yet and breaks?

All in all it's a dirty workaround to launch applications on start. Is a better way? A didin't find any other solution.

2 comments
Comment actions Permalink

Dirty workarounds is all we have to offer right now, unfortunately: https://youtrack.jetbrains.com/issue/IDEABKL-5622

Is it because configuration tries to run request to localhost which hasn't been launched yet and breaks?

As far as I understand it, it should not try to access http://localhost until both external tools start to launch, so it's unlikely that it's the reason. We need to know what commands those tools run to troubleshoot that.

Other than that, I'd suggest that you install the Bash plugin and then create a Bash run configuration launching a script starting those two programs for you.

0
Comment actions Permalink

Thanks for the Bash suggestion. Based on that I finally created a batch file which starts my both programs. Then I added that file as a single External Tool in Before launch section. Right now it works great.

0

Please sign in to leave a comment.