Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Rake tasks and script/rails commands should respect Engine paths #955

Closed
lighthouse-import opened this Issue May 16, 2011 · 0 comments

Comments

Projects
None yet
1 participant

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6619
Created by Kaiting Chen - 2011-04-11 18:45:38 UTC

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment