precompile

To access javascript files from another app

孤者浪人 提交于 2019-12-13 07:44:03
问题 I'm trying to access to my pre-compiled files of my application from another. I've a specific architecture. Here is a simplified tree ├── app │ ├── assets │ │ ├── javascripts │ │ │ ├── application.coffee │ │ │ ├── my_js_file.coffee ├── my-other-app │ ├── index.html │ ├── javascript │ │ ├── anotherJSFile.js I would like to load on index.html the compiled file of my_js_file.coffee . my-other-app isn't a Rails app. It contains a basic index.html file where a specific URL redirect where I try

Using PrecompiledMvcEngine FindView throws InvalidOperationException and looks for View cshtml files

风流意气都作罢 提交于 2019-12-12 03:33:44
问题 I got an InvalidOperationException when the MVC controller tried to FindView while using the PrecompiledMvcEngine . Using on a machine that has VS2012, MVC4 and deployed to IIS 回答1: After looking at the source code of ControllerBase.FindView to ViewEngineCollection.FindView to VirtualPathProviderViewEngine to PrecompiledMvcEngine, found that _mappings in PrecompiledMvcEngine had a count of 0. (Tx to Reflection and Open source.) The reason is that there was not Type assignable to

Cannot configure assets via pipeline on local production rails 3.1.3 server

谁说我不能喝 提交于 2019-12-12 03:06:14
问题 This month, I upgraded from Rails 3.0 to Rails 3.1 - this week I tried to launch the server in production mode - today I have hit a wall ! I am unable to get my production environment server to serve up my public assets (JavaScript and CSS) via the asset pipeline, unless I set config.assets.compile = true in my environment.rb file, which for speed reasons I obviously don't want to do. I have a large number of JS and CSS files, each of which tends to get used on one or two different pages.

aspnet_compiler incremental precompile

心不动则不痛 提交于 2019-12-11 13:36:20
问题 I have a website project and I want to make aspnet_compiler precompile incrementally (right now it cleans out everything and recompile everything from scratch) I tried to delete the -f flag, and use fixednames, but then it gave me this error error ASPRUNTIME: The target directory is not empty. am I suppose to delete the target directory after each instance of precompiling? 来源: https://stackoverflow.com/questions/23644017/aspnet-compiler-incremental-precompile

Rails 4.1 image url's still calling uncompiled assets

大憨熊 提交于 2019-12-11 11:40:50
问题 So I have got my rails site up on production for the most part but I realized I was missing a few images. I looked at my precompiled css file and the image url's are calling the images directly like url(/assets/gototop.png) which it won't find since my image is now something like gototop-6c119f88349ddd550e3efcf5bbefe1ad.png . How do I get my css to point to the precompiled image file? Update: also as stated in the linked file I realize I could use the asset_path method but unfortunately I am

How to precompile gulp-handlebars helpers?

流过昼夜 提交于 2019-12-11 10:26:43
问题 I am precompiling my templates into JS using gulp-handlebars but I am having trouble getting custom handlebars helpers to also precompile. Does anyone know if there is any support/way to precompile custom helper methods? 回答1: I noticed that gulp-handlebars can use a specific handlebars library, essentially overriding its default. So, by just creating my own module and registering some helpers, and feeding that into the handlebars call, things are working locally. // helpers.js var handlebars

asp.net 4 precompile utility and classic asp files

半世苍凉 提交于 2019-12-11 07:32:06
问题 We have a huge site that still has over 800 classic asp pages. While working on the upgrade of the site to 4.0 I cam across an issue where asp.net precompile utility aspnet_compiler throws millions of errors in those classic asp pages, especially with the include directives. (mainly constants and functions are defined in the global files not visible in the included file itself) Is there a way to tell precompile utility to ignore classic asp and inc files? Is there any other way other then

Javascript files are not included from manifest

无人久伴 提交于 2019-12-08 11:23:00
问题 I am using Ruby On Rails and have ActiveAdmin on top of that on a windows machine. I don´t think ActiveAdmin has anything to do with it, but I am just saying. The Javascript file that is included via HTML is /assets/active_admin.js and the manifest file itself looks like this: //= require active_admin/base //= require just_datetime_picker/nested_form_workaround When I run my Rails application and open http://localhost:3000/assets/active_admin.js , the log tells me, that active_admin.js was

Rails precompile assets - Cannot access precompiled files locally

僤鯓⒐⒋嵵緔 提交于 2019-12-08 09:15:18
问题 I have a mysterious problem in my rails application, which I cannot fix. The thing is that I want to precompile my CSS and JavaScripts and run the server on the staging environment locally to check if everything is ok, before I deploy to the server. I run this command to precompile the files: rake assets:precompile RAILS_ENV=staging To start the server in staging environment i run this command: rails s -e staging The files are being precompiled successfully and placed in the public/assets

Java - Using Ant to automatically generate boilerplate code

做~自己de王妃 提交于 2019-12-08 08:30:11
问题 Intro: I'm asking this before I try, fail and get frustrated as I have 0 experience with Apache Ant. A simple 'yes this will work' may suffice, or if it won't please tell me what will. Situation: I'm working on a project that uses JavaFX to create a GUI. JavaFX relies on Java Bean-like objects that require a lot of boilerplate code for it's properties. For example, all functionality I want to have is a String called name with default value "Unnamed" , or in a minimal Java syntax: String name