0

それを追加する前に、私の展開は問題ありませんでした...次のコードをroutes.rbに追加し、開発中は問題なく実行されましたが、Capistranoを使用してリモートサーバーに再度展開すると、展開が失敗します:

routes.rb
   Workshop::Application.routes.draw do

    if Rails.env.production?
      offline = Rack::Offline.configure :cache_interval => 120 do      
         cache ActionController::Base.helpers.asset_path("application.css")
         cache ActionController::Base.helpers.asset_path("application.js")
         # cache other assets
         images = ["favicon.ico", "empty_boxes.png", "isabelle.png", "loading.gif", "errors/not_found.jpg", "errors/access_denied.jpg", "gallery/black.png"]
         images.each do |image|
           cache ActionController::Base.helpers.asset_path(image)
          end
         ...
      end 
      ... other routes ..
   end

展開エラーは、次のブロックのキャッシュ アクションに関連しています。

  * executing "cd -- /var/www/vhosts/ceramique-isabelle.fr/rails/workshop/
   releases/2013.... && bundle exec rake RAILS_ENV=production 
    RAILS_GROUPS=assets assets:precompile && cp --
  /var/www/vhosts/ceramique-isabelle.fr/rails/workshop/shared/assets/manifest.yml
 /var/www/vhosts/ceramique-isabelle.fr/rails/workshop/releases/2013../assets_manifest.yml"

  servers: ["ceramique-isabelle.fr"]
       [ceramique-isabelle.fr] executing command
       ** [out :: ceramique-isabelle.fr] rake aborted!
        [out :: ceramique-isabelle.fr] application.css isn't precompiled

一部のキャッシュラインを抑制すると、次のように失敗します

        [out :: ceramique-isabelle.fr] application.js isn't precompiled
         or removing the cache for application.js , it fails on the nex ...
        [out :: ceramique-isabelle.fr] favicon.ico isn't precompiled

とにかくこのエラーを回避する方法はありますか..このブロックをデプロイしてから、もう一度挿入して再デプロイしようとしますが、リモートサーバーの事前コンパイル中にも失敗すると思います

4

1 に答える 1

1

このブロックとは関係ありません.....ではなく、cssのプリコンパイルエラーに関係しています...ローカルでプリコンパイルしようとしたところ、エラーが発生しました

"...-border-radius:" の後の CSS が無効です: 疑似クラスまたは疑似要素が予想されましたが、" 10px;" でした。

どこを検索して修正するか....

トラック悪くてごめんなさい

于 2013-01-25T17:52:46.823 に答える