This project is archived and is in readonly mode.

#6619 new
Kaiting Chen

Rake tasks and script/rails commands should respect Engine paths

Reported by Kaiting Chen | March 24th, 2011 @ 08:38 PM

While it is possible to set paths.{app,config,lib,log,public,tmp,vendor}.* in application.rb, some components of Rails do not respect these options. At the very least Rails::Server.start in commands/server.rb should attempt to create the tmp subdirectories in the correct location. Therefore line 62 of that file should read

FileUtils.mkdir_p(Rails.root.join(Rails.application.paths.tmp.first, dir_to_make))

And the default location for the server pid file should also take into account paths.tmp.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages