Coder Social home page Coder Social logo

Comments (9)

kazimzaidi avatar kazimzaidi commented on May 18, 2024 3

Any way to have that option (force_aseets=1) inside the config/deploy.rb ?

from mina.

rstacruz avatar rstacruz commented on May 18, 2024 1

bundle exec mina deploy force_assets=1

Try that in the meantime.

On Oct 5, 2012, at 12:56 AM, Dan Sosedoff [email protected] wrote:

I encountered the issue with asset precompilation.

Our app has config option config.assets.compile = false, which triggers
exception when required asset (in our case admin.css) is not precompiled.
Adding the asset into the precompilation list should solve it:
config.assets.precompile
+= ['admin.css']

Here is the issue. Mina skips asset precompilation and thus causes
application to fail after next successful deploy. I fixed it by removing
the asset folder and ran the deploy again.

Any tips on this?


Reply to this email directly or view it on
GitHubhttps://github.com//issues/60.

from mina.

killthekitten avatar killthekitten commented on May 18, 2024

It happened to us when we used similar script with Capistrano. Don't know how to solve this problem gracefully, but at least Mina can check application.rb for changes also.

from mina.

rstacruz avatar rstacruz commented on May 18, 2024

config/application.rb and config/environments/production.rb, considering that's where most store their precompile config. (Personally I'd argue application.rb is the best place to put it in, though)

from mina.

 avatar commented on May 18, 2024

I'm having the same issue, any news on a fix?

from mina.

killthekitten avatar killthekitten commented on May 18, 2024

It is just waiting someone to come and fix it. several month ago I tried to start the work on it, but something stopped me.

from mina.

tonytonyjan avatar tonytonyjan commented on May 18, 2024

+1

from mina.

d4be4st avatar d4be4st commented on May 18, 2024

mina only check diff of app/assets and vendor/asses for changes. Does not check any other as you can create your own intialize files which could change assets configs.

Please use mina deploy force_assets=1

from mina.

 avatar commented on May 18, 2024

@d4be4st But what about engine assets?

from mina.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.