资产:预编译失败。什么是'术语'?

时间:2015-01-16 11:00:17

标签: ruby-on-rails rake precompile

我使用apache + passenger将应用程序部署到生产环境。 我使用下面的cmd预编译js文件。

bash-3.2 $ rake assets:预编译     耙子流产了!     Sprockets :: FileNotFound:无法找到文件 ' term'       (在/Applications/rubystack-2.0.0-23/ruby/lib/ruby/gems/2.0.0/gems/web-console-2.0.0/lib/assets/javascripts/web_console.js:1)

web_console.js

//= require term

;(function(BaseTerminal) {

  // Expose the main WebConsole namespace.
  var WebConsole = this.WebConsole = {};

  // Follow term.js example and expose inherits and EventEmitter.
  var inherits = WebConsole.inherits = BaseTerminal.inherits;
  var EventEmitter = WebConsole.EventEmitter = BaseTerminal.EventEmitter;

  var Terminal = WebConsole.Terminal = function(options) {
    if (typeof options === 'number') {
      return BaseTerminal.apply(this, arguments);
    }

    BaseTerminal.call(this, options || (options = {}));

    this.open();

    if (!(options.rows || options.cols) || !options.geometry) {
      this.fitScreen();
    }
  };

  // Make WebConsole.Terminal inherit from BaseTerminal (term.js).
  inherits(Terminal, BaseTerminal);

  Terminal.prototype.fitScreen = function() {
    var width  = Math.floor(this.element.clientWidth / this.cols);
    var height = Math.floor(this.element.clientHeight / this.rows);

    var rows = Math.floor(window.innerHeight / height);
    var cols = Math.floor(this.parent.clientWidth / width);

    this.resize(cols, rows);

    return [cols, rows];
  };

}).call(this, Terminal);

什么是术语?如果我失去了一些宝石?

0 个答案:

没有答案