Skip to content
This repository

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

Closed
lighthouse-import opened this Issue · 0 comments

1 participant

Lighthouse Import
Lighthouse Import

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
Something went wrong with that request. Please try again.