On my system, all my Rails applications are stored in a base directory, along with a folder containing the following batch scripts. To launch the development environment for a particular Rails application, I can simply supply the batch file with the name of that application.
Each batch file contains the command to launch that component:
- autotest.bat
- server.bat
- spork.bat
- komodoedit.bat
- lde.bat
%~dp0 is the path the batch file was launched from, so takes us back into our scripts directory, allowing us to launch the other batch commands from our Rails application directory.
To use this Rails development environment launcher, we simply open a command prompt, navigate to our useful scripts folder, and execute lde.bat with the name of the application we want to work on - for example:
lde.bat myApplication
This will launch everything we need to continue developing as rapidly as possible!Update 10-Feb-2012:
Files published to public git repo :
- GitHub page: https://github.com/matalangilbert/Rails-Scripts
- Clone URL: git://github.com/matalangilbert/Rails-Scripts.git
As always, comments, opinions and suggestions are welcomed below!
No comments:
Post a Comment
Please leave a comment if you find this blog helpful or interesting! I'd love to hear from you!