Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/54.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CSS和其他更改已赢得';在Heroku上部署应用程序时无法加载_Css_Ruby On Rails_Heroku_Deployment_Gemfile - Fatal编程技术网

CSS和其他更改已赢得';在Heroku上部署应用程序时无法加载

CSS和其他更改已赢得';在Heroku上部署应用程序时无法加载,css,ruby-on-rails,heroku,deployment,gemfile,Css,Ruby On Rails,Heroku,Deployment,Gemfile,我目前正在Heroku上部署一个应用程序,但它是作为基本版本上传的。它没有显示我通过CSS、HTML和其他定制所做的更改。此外,我在这里搜索了几个类似的问题,但似乎找不到合适的解决方案 我已经预编译了应用程序,但没有用。下面是我部署时发生的情况。你能告诉我怎么办吗?谢谢大家! C:\Sites\LaunchPage>git push heroku master Everything up-to-date C:\Sites\LaunchPage>heroku run rake db:

我目前正在Heroku上部署一个应用程序,但它是作为基本版本上传的。它没有显示我通过CSS、HTML和其他定制所做的更改。此外,我在这里搜索了几个类似的问题,但似乎找不到合适的解决方案

我已经预编译了应用程序,但没有用。下面是我部署时发生的情况。你能告诉我怎么办吗?谢谢大家!

C:\Sites\LaunchPage>git push heroku master
Everything up-to-date

C:\Sites\LaunchPage>heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up, run.3644
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support
 for these plugins will be removed in Rails 4.0. Move them out and bundle them i
n your Gemfile, or fold them in to your app as lib/myplugin/* and config/initial
izers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonr
ails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required
)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support
for these plugins will be removed in Rails 4.0. Move them out and bundle them i
n your Gemfile, or fold them in to your app as lib/myplugin/* and config/initial
izers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonr
ails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required
)> at /app/Rakefile:7)
Connecting to database specified by DATABASE_URL
Migrating to CreateUsers (20130821031443)

C:\Sites\LaunchPage>rake assets:precompile
←[31mBundler could not find compatible versions for gem "sprockets":
In snapshot (Gemfile.lock):
sprockets (2.1.3)

In Gemfile:
sass-rails (= 3.1.4) x86-mingw32 depends on
  sprockets (~> 2.0.0) x86-mingw32

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
←[0m

C:\Sites\LaunchPage>
C:\Sites\LaunchPage>git-push-heroku-master
一切都是最新的
C:\Sites\LaunchPage>heroku运行rake数据库:迁移
正在运行附加到终端的“rake db:migrate”。。。起来,跑
弃用警告:在供应商/插件中有Rails 2.3风格的插件!支持
因为这些插件将在Rails 4.0中删除。把它们搬出去,我把它们捆起来
n您的Gemfile,或者将它们作为lib/myplugin/*和config/initial折叠到您的应用程序中
izers/myplugin.rb。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonr
ails.org/2012/1/4/rails-3-2-0-rc2-has-release。(从at/app/Rakefile:7调用)
弃用警告:在供应商/插件中有Rails 2.3风格的插件!支持
因为这些插件将在Rails 4.0中删除。把它们搬出去,我把它们捆起来
n您的Gemfile,或者将它们作为lib/myplugin/*和config/initial折叠到您的应用程序中
izers/myplugin.rb。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonr
ails.org/2012/1/4/rails-3-2-0-rc2-has-release。(从at/app/Rakefile:7调用)
连接到数据库\u URL指定的数据库
迁移到CreateUsers(20130821031443)
C:\Sites\LaunchPage>rake资产:预编译
←[31mBundler找不到gem“链轮”的兼容版本:
在快照(Gemfile.lock)中:
链轮(2.1.3)
在文件中:
sass rails(=3.1.4)x86-mingw32取决于
链轮(~>2.0.0)x86-mingw32
运行“bundle update”将从头开始重建快照,只需使用
GEM文件中的GEM,这可能会解决冲突。
←[0m
C:\Sites\LaunchPage>

试着按要求运行bundle update。对于您正在使用的sass rails版本,您似乎没有正确的链轮版本。我已尝试安装正确的版本,但我收到了此消息
C:\Sites\LaunchPage>rake assets:precompile
←[31M您已请求:链轮=2.0.0
捆绑包当前已将链轮锁定在2.1.3。请尝试运行
捆绑包更新链轮
←[0m←[33mRun
bundle install`安装缺少的gems。←[0m`@ManuelvanRijn不得不降低宝石的评级,所以现在应该可以了。谢谢:-)