Why only the first "rake" command is executed in a batch file?
I created reset_db.bat
on Windows with the following content:
rake db:drop RAILS_ENV=development
rake db:c开发者_Python百科reate
rake db:migrate
rake db:seed
When I type reset_db
only the first command (drop
) is executed. Why ?
I assume that the rake is also a .bat file.
Then you only have to prepend it with a call
call rake db:drop RAILS_ENV=development
call rake db:create
call rake db:migrate
call rake db:seed
精彩评论