所以我只是克隆了一个存储库,一切正常。数据库迁移得很好,捆绑也运行良好。但我无法在开发中使用app/assets/stylesheets/
中的样式表以及javascript。该网站使用bootstrap,因此它非常重要。我目前正在开发模式,我看到application.css / js通过查看页面源提供给浏览器,但没有其他文件。
以下是两个应用程序文件的内容:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*/
body {
padding-top: 40px;
}
.alert {
margin-top: 10px;
}
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require_tree .
答案 0 :(得分:1)
通过将Gemfile中的rails版本碰到3.2.13来解决这个问题。不知道为什么会这样,为什么它不能克隆。这就是修复它的原因。