assets

Rails 4, Asset Compiling

左心房为你撑大大i 提交于 2020-01-14 05:54:11
问题 I have probably wasting 4 hours trying to make this problem go away and not sure what the problem is. Locally I have been creating my Rails Application and all the assets load properly which can be see here: <link data-turbolinks-track="true" href="/assets/application.css?body=1" media="all" rel="stylesheet" /> <link data-turbolinks-track="true" href="/assets/auth.css?body=1" media="all" rel="stylesheet" /> <link data-turbolinks-track="true" href="/assets/authenications.css?body=1" media="all

Symfony2: How to properly include assets in conjunction with Twig template inheritance?

狂风中的少年 提交于 2020-01-12 07:49:06
问题 I'm currently developing a web application using Symfony 2.1.0. I've read through the Templating chapter of the book and I'm trying to include assets (right now, it's just a single stylesheet) in my web pages. I'm using the Three-level inheritance system that is mentioned in the book, and my application structure currently looks like this: app/Resources/views/ base.html.twig: base template, containing title , stylesheets and body blocks. src/My/PageBundle/Resources/views layout.html.twig:

rails assets in production not served (yet another assets issue)

 ̄綄美尐妖づ 提交于 2020-01-11 11:56:08
问题 I'm using apache 2.2.15 passenger 5.1.2 rails 4.2.6 ruby 2.3.3 In the rails log, I get (No route matches [GET] application-xxxxx.js as well as (No route matches [GET] application-xxxxx.css I can find the assets in the public/assets directory. My manifests: app/assets/stylesheets/application.css.less: /* *= require jquery-ui *= require font-awesome *= require bootstrap_and_overrides *= require awesome-bootstrap-checkbox *= require lists *= require mailgroups *= require general *= require

Apache Proxying leads to ERR_CONTENT_DECODING_FAILED error

*爱你&永不变心* 提交于 2020-01-10 04:06:48
问题 I'm trying to configure a reverse proxy from Apache web server (A) to another Apache web server on different machine (B). With configuration I'm currently using I'm able to access web page located on server B as if it were on server A, however requests for some assets constantly result in ERR_CONTENT_DECODING_FAILED (at least in chrome). This doesn't happen when I'm using simple redirection instead of proxying. I have browsed through request and response headers and it seems that everything

Symfony2 assetic:dump wrong write_to path

一世执手 提交于 2020-01-07 07:13:08
问题 I have a longtime problem with assetic:dump. I wanna use "assetic" to get Javascript and CSS files from different bundles (I wrote) and collect them to dev and prod environment in the templates. Everytime I wanna dump new files, the assetic:dump command try to write in a complete broken path. app/console assetic:dump [RuntimeException] Unable to create directory /var/www/app/../web//var/www/app/../htdocs/css I also try writing in: (nothing works) app/console assetic:dump web app/console

Add Bootstrap-Image-Gallery to a Rails project

白昼怎懂夜的黑 提交于 2020-01-06 07:34:20
问题 I found this nice Image gallery addon for Bootstrap but I am not sure how to integrate it on my rails project. https://github.com/blueimp/Bootstrap-Image-Gallery I figured I could use Rails (3.1) vendor's folder. So that's what I did. I cloned those files in the vendor/assets folder: git clone https://github.com/blueimp/Bootstrap-Image-Gallery.git Ok now it's there, how do I use it? How do I load these resources in my application? my current application.js: //= require jquery //= require

An error when trying to copy a file from the assets folder

≯℡__Kan透↙ 提交于 2020-01-06 07:16:27
问题 I am trying to copy a file from assets folder to external storage, this is the code I have: File f=new File(Environment.getExternalStorageDirectory(), "imgs/" + str2); if (!f.exists()) { try { InputStream ins = getApplicationContext().getAssets().open("imgs/" + str2); FileOutputStream out=new FileOutputStream(f); byte[] buf=new byte[1024]; int len; while ((len=ins.read(buf)) > 0) { out.write(buf, 0, len); } ins.close(); out.close(); } catch (IOException e) { Log.e("FileProvider", "Exception

An error when trying to copy a file from the assets folder

守給你的承諾、 提交于 2020-01-06 07:16:10
问题 I am trying to copy a file from assets folder to external storage, this is the code I have: File f=new File(Environment.getExternalStorageDirectory(), "imgs/" + str2); if (!f.exists()) { try { InputStream ins = getApplicationContext().getAssets().open("imgs/" + str2); FileOutputStream out=new FileOutputStream(f); byte[] buf=new byte[1024]; int len; while ((len=ins.read(buf)) > 0) { out.write(buf, 0, len); } ins.close(); out.close(); } catch (IOException e) { Log.e("FileProvider", "Exception

How can we compress images in DAM AEM6.3?

一个人想着一个人 提交于 2020-01-06 06:52:07
问题 We are trying to increase the page score (google) for our website. One of the options to do this is " Image optimization ". As we have a huge number of images in the DAM, how can we compress/optimize them? Does AEM have any such tool to achieve this ? ImageMagick is one of the tool to achieve this. Do we need to integrate that with AEM or we'll have to re-upload all the images after compressing them using the tool? Any suggestions? 回答1: In contrast to CSS, JS and HTML files which can be

How can we compress images in DAM AEM6.3?

怎甘沉沦 提交于 2020-01-06 06:51:09
问题 We are trying to increase the page score (google) for our website. One of the options to do this is " Image optimization ". As we have a huge number of images in the DAM, how can we compress/optimize them? Does AEM have any such tool to achieve this ? ImageMagick is one of the tool to achieve this. Do we need to integrate that with AEM or we'll have to re-upload all the images after compressing them using the tool? Any suggestions? 回答1: In contrast to CSS, JS and HTML files which can be