variables in batch files
        Posted  
        
            by richzilla
        on Super User
        
        See other posts from Super User
        
            or by richzilla
        
        
        
        Published on 2010-04-20T22:02:58Z
        Indexed on 
            2010/04/20
            22:03 UTC
        
        
        Read the original article
        Hit count: 451
        
php
|deployment
Hi All,
Im trying to set up a batch file to automatically deploy a php app to a web server, and basically what i want is an entirely automated process where i would just give it a revision number from the repository and it would then export the files, upload via ftp and then update deployment info at the repo host (codebase). However, im starting from scratch here, and im wanting to know, how would i set up a batch file to accept a variable when it was run, for example typing myfile.bat /revision 42 would enable me to deploy revision 42 to my server. if anyone can point me in the right direction id be very appreciated.
© Super User or respective owner