rails - windows , auto start with command line~

访问量: 664

1. this is the shortcut details for "start command line prompt with ruby" : 

C:\Windows\System32\cmd.exe /E:ON /K d:\Ruby22-x64\bin\setrbvars.bat

set the default location to your rails project folder, e.g.    d:\workspace\las_analyser 

2. open  d:\Ruby22-x64\bin\setrbvars.bat, 

REM Display Ruby version
ruby.exe -v

# add this line: 
bundle exec rails server

then double click the icon, rails will start as normal. 

订阅/RSS Feed