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:
%~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:
This will launch everything we need to continue developing as rapidly as possible!
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!