Mina: Asset precompilation skip issue

Created on 4 Oct 2012  ·  9Comments  ·  Source: mina-deploy/mina

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?

Most helpful comment

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

All 9 comments

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/nadarei/mina/issues/60.

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.

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)

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

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.

+1

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

@d4be4st But what about engine assets?

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bilge picture Bilge  ·  9Comments

ghost picture ghost  ·  3Comments

krishnateja picture krishnateja  ·  6Comments

jmuheim picture jmuheim  ·  5Comments

Ilya-Kuchaev picture Ilya-Kuchaev  ·  4Comments