diff options
author | Mohnish Thallavajhula <i@mohni.sh> | 2015-05-04 22:32:07 -0700 |
---|---|---|
committer | Mohnish Thallavajhula <i@mohni.sh> | 2015-05-04 22:32:07 -0700 |
commit | 03c32c6d806136b99d54b4e1d3b662a5acf48d3f (patch) | |
tree | cd0b5df4ccd2fe554bd750fbbb545d26db29c091 /railties | |
parent | d687881fa80c7f4f09403d3ba64dd84bb1553d02 (diff) | |
download | rails-03c32c6d806136b99d54b4e1d3b662a5acf48d3f.tar.gz rails-03c32c6d806136b99d54b4e1d3b662a5acf48d3f.tar.bz2 rails-03c32c6d806136b99d54b4e1d3b662a5acf48d3f.zip |
Use the built-in rake tasks
Use the `log:clear` and `tmp:clear` rake tasks in the setup file template
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/setup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/setup b/railties/lib/rails/generators/rails/app/templates/bin/setup index eee810be30..0556cbd355 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/setup +++ b/railties/lib/rails/generators/rails/app/templates/bin/setup @@ -22,8 +22,8 @@ chdir APP_ROOT do system 'ruby bin/rake db:setup' puts "\n== Removing old logs and tempfiles ==" - rm_f Dir.glob('log/*') - rm_rf 'tmp/cache' + system 'ruby bin/rake log:clear' + system 'ruby bin/rake tmp:clear' puts "\n== Restarting application server ==" touch 'tmp/restart.txt' |