Shebang swapping

I'm trying to test my scripts using an external apache server locally. However to do this, my scripts need this shebang line:

But when I publish it, they need this line:

Is it possible to use the Swap Version option to change the shebang line between local and published versions of the same script? I tried it but it doesn't seem to work.

If not, is there another quick way to do this in the editor? Or do I just use Find and Replace prior to uploading?


You can. From Tools / Remote Sessions setup, go to the "Session Settings" section, and in the shebang line, enter the required remote, and also enable "change when uploading". This affects publishing, uploading via remote explorer, and also File / upload remote file

20.04.2004. 00:29

This article hasn't been commented yet.

Write a comment




5 + 5 =