assets

Zurb Foundation 5, modernizr not found

放肆的年华 提交于 2019-12-22 04:12:34
问题 I get this when using Foundation 5.0.2.0 in production mode. On Rails, Unicorn, NginX & Ubuntu. "NetworkError: 404 Not Found - http://mydomain.com/javascripts/vendor/modernizr.js" 回答1: Update 3/13/14 I don't have this problem on heroku with foundation-rails-5.1.1.0. Adding javascript_include_tag "vendor/modernizr" in the head works. I could remove the modernizr I copied to the vendor directory and remove the extra line in app.js I had the same problem on heroku, the app would crash because it

Why are my assets not served through a reverse proxy in apache

跟風遠走 提交于 2019-12-22 04:03:44
问题 I have a rails app running on passenger standalone, which is working perfectly. I am running apache, and use a VirtualHost with a reverse proxy to serve my rails app. This works. However my assets are not being served through the vhost, but give a proxy error. My httpd.conf <VirtualHost *:80> ServerName greekpeep_rails.nightowls.co DocumentRoot /home/railsapps/www/greekpeep/public ProxyPass / http://127.0.0.1:4000 ProxyPassReverse / http://127.0.0.1:4000 <Directory /home/railsapps/www

Is it possible to get last modified date from an assets file?

南笙酒味 提交于 2019-12-22 02:04:25
问题 Bizarre question: is it possible to get the last modified date of a file in the assets folder, or would that be pointless and impossible? I ask because I'm copying a read-only database out of there into the data folder on application start up, but would rather only perform the copy if the existing file is older than the one stored in the assets folder (or if the file doesn't exist). If that's not possible, anyone know of a better convention? I can post that in a separate question if needed.

Rails loads css files from public/assets instead of app/assets in development mode

瘦欲@ 提交于 2019-12-22 00:36:14
问题 I'm running in development mode. I'm editing .css files but not seeing changes. If I go to public/assets/ and rename application.css, I see changes (it can't find any styles). Why would it be using that file? Isn't that for production mode? I don't want to pre-compile all the time in dev mode. thanks. Environment files added below. development.rb : Tcms::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment

Assets in the public directory not showing in Laravel 5

霸气de小男生 提交于 2019-12-21 23:23:01
问题 I am having issues with assets in the /public directory in Laravel 5.4 and Laravel 5.5. On a fresh install of Laravel, nothing in the public directory will work without /public in the URL. When I run php artisan make:auth , the views that are created are supposed to be perfect, right? Well, what I get is an unstyled page which only looks pretty when I use the DOM inspector to add /public so that I end up with: <link href="http://localhost/l5.4/public/css/app.css" rel="stylesheet"> Where can I

Different assets in cli config for ng serve and ng build [Angular 5]

与世无争的帅哥 提交于 2019-12-21 21:39:23
问题 Is possible to use different assets array when i use ng build ? "assets": [ "assets", "favicon.ico", { "glob": "**/*", "input": "../externalDir", "output": "./app/", "allowOutsideOutDir": true } ] In my case when i use ng build i want to build only this: "assets": [ "assets", "favicon.ico" ] 回答1: I don't believe there is an option to do environment specific assets. But you can make additional apps in your angular-cli.json which are basically just copies of each other, but with different

.\key.p12: open failed: ENOENT (No such file or directory)

丶灬走出姿态 提交于 2019-12-21 19:27:51
问题 In my android application I'm accessing the Google cloud storage . I have generated the private key xxxxxxxkey.p12 .I have put my key file in assets folder . But while running the project it is not opening the key.p12 file . I have tried putting it outside the assets folder , still no result. httpTransport = AndroidHttp.newCompatibleTransport(); AssetManager am = getAssets(); InputStream inputStream = am.open("xxxxxxxxxxKey.p12"); File file = createFileFromInputStream(inputStream);

symfony2 - the assetic assetic:dump command doesn't create stylesheets correctly

好久不见. 提交于 2019-12-21 16:58:56
问题 For some reason I can't load the css files. Here is the structure of the bundle that I use BD WebsiteBundle public css And here is how I try to load the css files {% stylesheets 'bundles/bdwebsite/css/*' filter='cssrewrite' %} <link rel="stylesheet" href="{{ asset_url }}" /> {% endstylesheets %} I did assetic:dump What I'm doing wrong? 回答1: You referred to bundles/bdwebsite/css/* in your stylesheets tag. This way assetic looks for all css files in web/bundles/bdwebsite/css (a folder that

Where should I store static resources when I build spring-boot app by gradle?

落爺英雄遲暮 提交于 2019-12-21 11:34:52
问题 I've found samples that stores static files in /src/main/webapp/ and /src/main/resources/static/ . What's the difference and what's the best place to store static files in spring-boot app? 回答1: If your resources are in src/main/webapp that suggests you are building a WAR archive. And for a JAR src/main/resources is more appropriate (eg in /static if it's a boot app). It's up to you though if you want to put stuff in non standard places - you just have to configure the build system to

Android: path of assets folder for File()?

こ雲淡風輕ζ 提交于 2019-12-21 09:34:45
问题 I have some files in the assets folder of my project, and I want to list them, so I put this in my code: File dir = new File("com.packagename/assets/fonts"); File[] fileList = dir.listFiles(); Which path should I put to make it work? I want it so users could install new fonts (I don`t know how to do this yet) so I need to list all the fonts in the folder, including post-installed fonts. If there is any other solutions, please share. 回答1: Assets and resources are accessible using file://