precompile

How disable assets compilation on heroku?

妖精的绣舞 提交于 2019-12-23 16:25:47
问题 I'm trying to deploy my rails app to heroku using this turtorial: https://devcenter.heroku.com/articles/getting-started-with-rails4 So, I use rails 4.1.1 and ruby 2.1.1 My Gemfile has gem 'rails_12factor', group: :production inside. My application.rb: require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(*Rails.groups) module Charticus class Application Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application

MSBuild Failure When PrecompileBeforePublish is enabled

╄→гoц情女王★ 提交于 2019-12-23 02:07:23
问题 I'm using following command to compile a project using msbuild with pre compile enabled msbuild C:\WebGoat.NET-master\WebGoat\WebGoat.NET.csproj /p:OutputPath=bin /p:DeployOnBuild=true /p:WebPublishMethod="FileSystem";PrecompileBeforePublish=true;EnableUpdateable=false;DebugSymbols=true /p:UseMerge=true;WDPMergeOption="MergeAllOutputsToASingleAssembly";SingleAssemblyName="ContosoWebPrecompiled" Build is getting failed with following error message "C:\WebGoat.NET-master\WebGoat\WebGoat.NET

Remove development gems from production with Bundler and Rails 4

最后都变了- 提交于 2019-12-22 10:23:39
问题 Problem Our deployed application has development dependencies in it. We have a lot of development dependencies. This increases the artifact size and the memory consumption in production, as all those dependencies are require 'd. Most instances are deployed in the cloud, so more memory = more money for larger instances. We would like to reduce the size/memory and make a more clear separation between the deployed artifact and the development environment. A particular focus is the need for

Why Visual Studio 2010 publish website with source code?

萝らか妹 提交于 2019-12-22 04:41:01
问题 I'm using Visual Studio 2010 with the new website publish dialog. I have a Web Application website. When published, in theory it should compile all the code into an single assembly. However, in both Debug and Release , after publishing the directory always contains source code of page and user controls (even with the untransformed web.config files Web.Debug.config and Web.Release.Config). This is very confusing. But with package/publish web project configuration and Generate Deploy package

config.assets.precompile not adding vendor/gem assets

感情迁移 提交于 2019-12-21 07:15:50
问题 I'm having trouble getting vendorized assets to be compiled as root files. I want to have the following assets available standalone (not packaged with other assets_: vendor/gems/neo-viz/app/assets/stylesheets/neo-viz.css.scss vendor/gems/neo-viz/app/assets/javascripts/neo-viz.js.coffee vendor/gems/neo-viz/app/assets/javascripts/lib/jQuery/jquery-1.6.1.min.js vendor/gems/neo-viz/app/assets/javascripts/lib/arbor/arbor.js With the following line: config.assets.precompile += %w( jquery-1.6.1.min

Excluding files from assets:precompile in rails

安稳与你 提交于 2019-12-20 10:36:37
问题 I use codekit for writing less which it then converts to css automatically. I don't want rails to convert my less files to css, I rather codekit do it. if I precompile the assets via rake assets:precompile I get rake aborted! cannot load such file -- less How do I exclude a specific folder/file types from precompiling? (all my less files are in app/assets/stylesheets/less and the css (which I do want to be precompiled) are in app/assets/stylesheets/css update deleting application.less solves

How to give fingerprint css path in production rails 4

泄露秘密 提交于 2019-12-18 05:08:10
问题 I am using imgkit to take snapshot of my webpage. I run: RAILS_ENV=production bundle exec rake assets:precompile To precompile my assets. All file of app/assets directory are compiled to public/assets application.css compiled as application-7a23a105125768e41d9d24aee4553615.css . My controller code is: kit = IMGKit.new(render_to_string(:partial => 'form', :height => 200, :transparent => true, :quality => 10, :layout => false,:locals => {:project => @project})) # t = kit.to_img(:png) kit

How to use ASP.NET MVC view precompilation with App_Code helpers?

荒凉一梦 提交于 2019-12-14 03:46:23
问题 I am trying to enable view compilation to have my ASP.NET MVC3 web site load faster. My web site is hosted on AppHarbor. However, my views make use of MVC3 view helpers, defined in the App_Code folder. When I try to load my web-site, I get: "The directory '/App_Code/' is not allowed because the application is precompiled." How can I stop the App_Code folder being deployed to the web-server, but still have the App_Code helpers pre-compiled? I've tried changing the helpers to Content=None, but

Sprockets require asset over HTTP

醉酒当歌 提交于 2019-12-14 02:25:35
问题 I would like to know if it's possible to require some assets over HTTP, eg: /* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the top of the *

How can I get precompiled razor files when deploying .NET Web Application?

不问归期 提交于 2019-12-13 16:56:23
问题 I am tasked with improving IIS preloading and initializing of applications on our server. I have implemented application initialization and preload of application on IIS, but still there is a long wait time when recycling/restarting application pool. I have found some useful links which I thought would help me, but I am still not getting precompiled Razor views. I tried to follow this article for RazorGenerator, but it does not seem to work. http://blog.davidebbo.com/2011/06/precompile-your