I know that one of Switchtower''s assumptions is that "The remote server is capable of understanding POSIX shell commands. (Windows, by default does not fall into this category.)" But it never says anything about the local development computer. I''m developing on WinXP and deploying to Linux. After installing Switchtower on my WinXP box, I go to the command prompt and type "switchtower -h" just like the documentation says to do, but I get "''switchtower'' is not recognized as an internal or external command, operable program or batch file. Am I missing something? Can I not do any switchtower functions on WinXP? Thanks in advance for any help, Marc ==================DISCLAIMER===============================This email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies of it from your system. The sender accepts no responsibility for viruses and it is your responsibility to scan attachments (if any). No contracts may be concluded on behalf of the sender by means of email communications unless expressly stated to the contrary. ==================DISCLAIMER================================
Marc Love wrote:> I''m developing on WinXP and deploying to Linux. After installing > Switchtower on my WinXP box, I go to the command prompt and type > "switchtower -h" just like the documentation says to do, but I get > "''switchtower'' is not recognized as an internal or external command, > operable program or batch file. > > Am I missing something?Switchtower is not on your path. Ray
On Oct 6, 2005, at 11:39 AM, Marc Love wrote:> I know that one of Switchtower''s assumptions is that "The remote > server > is capable of understanding POSIX shell commands. (Windows, by default > does not fall into this category.)" But it never says anything about > the local development computer.I''ve not tried it, but it should work.> I''m developing on WinXP and deploying to Linux. After installing > Switchtower on my WinXP box, I go to the command prompt and type > "switchtower -h" just like the documentation says to do, but I get > "''switchtower'' is not recognized as an internal or external command, > operable program or batch file.Sounds like the switchtower executable did not get installed in your path. How did you install it? You might need to explicitly do "ruby / path/to/switchtower -h" to get it to work on Windows... been long enough since I''ve used Windows as a development environment that I can''t remember whether it groks shebang lines, but I don''t believe it does. - Jamis
I figured it out and Jamis, you might want to add this to switchtower''s setup (I would submit a patch myself but I''m not quite sure exactly how to add it to the setup process). A one-liner file called switchtower.cmd needs to be created in the same directory as the ''switchtower'' command file (this would be C:/ruby/bin in Windows) with the following content: @ruby "c:/ruby/bin/switchtower" %* The problem is that Windows pretty much ignores files without file extensions. Rails, SimpleSearch, etc. all create this file to enable their use in Windows. I submitted a ticket and if someone knows how to add this, they can close the ticket. It''s at http://dev.rubyonrails.com/ticket/2402>>> jamis-uHoyYlH2B+GakBO8gow8eQ@public.gmane.org 10/06/05 11:13AM >>>On Oct 6, 2005, at 11:39 AM, Marc Love wrote:> I know that one of Switchtower''s assumptions is that "The remote > server > is capable of understanding POSIX shell commands. (Windows, bydefault> does not fall into this category.)" But it never says anythingabout> the local development computer.I''ve not tried it, but it should work.> I''m developing on WinXP and deploying to Linux. After installing > Switchtower on my WinXP box, I go to the command prompt and type > "switchtower -h" just like the documentation says to do, but I get > "''switchtower'' is not recognized as an internal or external command, > operable program or batch file.Sounds like the switchtower executable did not get installed in your path. How did you install it? You might need to explicitly do "ruby / path/to/switchtower -h" to get it to work on Windows... been long enough since I''ve used Windows as a development environment that I can''t remember whether it groks shebang lines, but I don''t believe it does. - Jamis _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails ==================DISCLAIMER===============================This email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies of it from your system. The sender accepts no responsibility for viruses and it is your responsibility to scan attachments (if any). No contracts may be concluded on behalf of the sender by means of email communications unless expressly stated to the contrary. ==================DISCLAIMER================================