我得到以下错误: [app (master)]$ heroku rake db:migrate rake aborted! undefined method `root' for Heroku::Rails:Module /app/Rakefile:7 (See full trace by running task with --trace) (in /app) 我无法弄清楚如何由错误的建议运行跟
我正在使用下面的代码将文件从PHP转换为html。为了使它工作,我必须在第二行输入每个文件的名称。 p "convert files"
%w(file1 file2 file3).each do |name|
system %(php #{DIR}/#{name}.php > #{DIR2}/#{name}.htm)
end
谁能告诉我如何使它所以它会自动找到主目录中的任何.ph