我的蓝图css在我的本地机器上工作,但是当我推送到heroku时我得到一个错误.
我有蓝图存储在我的app/assets/stylesheets folder
,这里是我正在使用的样式表标签:
<%= stylesheet_link_tag "application" %>
<%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %>
<%= stylesheet_link_tag 'blueprint/print', :media => 'print' %>
Run Code Online (Sandbox Code Playgroud)
在我的heroku日志中,它说application.css没有预编译,我认为这可能是错误,但我不知道如何解决它.
这是我的heroku日志:
2011-09-04T07:35:59+00:00 heroku[web.1]: Idling
2011-09-04T07:36:00+00:00 heroku[web.1]: State changed from up to down
2011-09-04T07:36:00+00:00 heroku[web.1]: State changed from down to created
2011-09-04T07:36:00+00:00 heroku[web.1]: State changed from created to starting
2011-09-04T07:36:01+00:00 heroku[web.1]: Stopping process with SIGTERM
2011-09-04T07:36:01+00:00 app[web.1]: >> Stopping ...
2011-09-04T07:36:01+00:00 heroku[web.1]: Process exited
2011-09-04T07:36:04+00:00 heroku[web.1]: Starting process with command `thin -p 44288 -e production -R /home/heroku_rack/heroku.ru …
Run Code Online (Sandbox Code Playgroud) 编辑:由于大多数评论到目前为止给我TypeScript解决方案,我觉得我需要在这里重复:使用JavaScript ES5.
我想创建一个canvas组件,我根据绑定属性绘制数据.如何使用JavaScript在Angular2中执行此操作?
我使用Angular 1的方法是在指令中获取元素引用,但我无法知道现在应该如何完成.
这是一种似乎有效的方法,但我觉得这样做后洗手:
(function (app) {
app.DrawingComponent = ng.core
.Component({
selector: 'my-drawing',
template: '<div><canvas id="{{randomId}}"></canvas></div>'
})
.Class({
constructor: function () {
this.randomId = "canvas" + Math.random();
},
ngAfterViewInit: function() {
var canvas = document.getElementById(this.randomId);
console.log(canvas);
}
});
})(window.app || (window.app = {}));
Run Code Online (Sandbox Code Playgroud) 我在构建和运行SBT项目时遇到了问题.
"协议"项目由几个模块使用,包括"守护进程".
"守护进程"项目应打包为可执行jar.
这样做的"正确"方法是什么?
这是我的Build.scala:
object MyBuild extends Build {
lazy val buildSettings = Seq(
organization := "com.example",
version := "1.0-SNAPSHOT",
scalaVersion := "2.9.1"
)
lazy val root = Project(
id = "MyProject",
base = file("."),
aggregate = Seq(protocol, daemon)
)
lazy val protocol = Project(
id = "Protocol",
base = file("Protocol")
)
lazy val daemon = Project(
id = "Daemon",
base = file("Daemon"),
dependencies = Seq(protocol)
)
// (plus more projects)
Run Code Online (Sandbox Code Playgroud) 目前,当启用选项时git diff
,--color
git ^M
仅在添加的行中显示行结尾,例如尾随空格.是否有可能让git在删除的行中显示这些?
angular ×1
components ×1
ecmascript-5 ×1
git ×1
git-diff ×1
heroku ×1
javascript ×1
sbt ×1
scala ×1