All questions regarding the precompile process should be tagged here
Questions tagged [precompile]
469 questions
10
votes
2 answers
Rails 3.1.1 assets precompile - rake aborted
EDIT: Anybody else has any suggestions? I'm totally stumped!!!
I have an app in which all the assets compile just fine but in this second app, when I run:
RAILS_ENV=production rake assets:precompile --trace
I get the following message: undefined…

allesklar
- 9,506
- 6
- 36
- 53
10
votes
3 answers
Sprockets error Sprockets::NotImplementedError: Custom asset_path helper is not implemented
I am getting the following when trying to precompile my assets locally
RAILS_ENV=production bundle exec rake assets:precompile
rake aborted!
Sprockets::NotImplementedError: Custom asset_path helper is not implemented
Extend your environment…

cman77
- 1,753
- 1
- 22
- 48
9
votes
2 answers
Precompile JSP's with Gradle
im trying to change our build process from Maven to Gradle (V 2.9). In Maven i was using precompiling for JSP's like this:
org.eclipse.jetty
…

StephanM
- 1,350
- 2
- 24
- 50
9
votes
2 answers
Sprockets::FileNotFound: couldn't find file 'jquery.ui.all' on Rails 4
Sprockets::FileNotFound: couldn't find file 'jquery.ui.all'
I attempted all recommendations found so far.
None of them works for me.
I cannot run anymore the program in development and as such I cannot anymore make a new deployment…

L.D
- 1,279
- 3
- 15
- 31
8
votes
5 answers
Rails precompile error in CSS
Invalid CSS after "}": expected selector or at-rule, was "}"
(in /home/test/www/dispatch/app/assets/stylesheets/application.css)
(sass):364
The above error is what is occurring in my precompile and I'm unable to find the problem. I've tried…

user1214966
- 273
- 1
- 4
- 10
8
votes
2 answers
Sprockets::Rails::Helper::AssetNotFound - The asset "my_logo.jpeg" is not present in the asset pipeline
Receiving this error, what am I missing?
Sprockets::Rails::Helper::AssetNotFound in Static#index:
The asset "my_logo.jpg" is not present in the asset pipeline.
ActionView::Template::Error (The asset "my_logo.jpg" is not present in the asset…

nictrix
- 1,483
- 1
- 17
- 34
8
votes
1 answer
When does `@static` run?
@static expr is a way to only run expr once;
for some sense of once.
but what sense of once is it?
Is it:
once per time the package is installed?
once per time the package is loaded?
some other definition
The most common use is for OS checking:…

Frames Catherine White
- 27,368
- 21
- 87
- 137
8
votes
2 answers
What are the tradeoffs for the different merge settings for Azure publish?
When you publish through Visual Studio to Azure, you have the option to precompile your pages. There are quite some options that explain what it does, but nothing about the trade-offs.
Why wouldn't I check 'Allow [...] to be updatable'?
Why merge…

Dirk Boer
- 8,522
- 13
- 63
- 111
8
votes
2 answers
Sass undefined variable on precompilation
I'm upgrading our Rails (3.2.17) app over to sass and I'm running into "undefined variable" errors during asset precompilation. I use @import to include my snippets in the master.scss file. This setup works great locally, but errors on…

geraddavis
- 355
- 1
- 3
- 16
8
votes
3 answers
How do you pre-compile Drools rules?
I want to pre-compile my .drl files to .class files so they do not have to be compiled a run time. The documentation makes it sounds like the kie-maven-plugin does this, but it is not generating anything for me. It compiles the rules files but…

Scott Thibault
- 329
- 2
- 4
- 12
8
votes
1 answer
why sizeof("-2147483648") - 1
When reading nginx source code, I find this line:
#define NGX_INT32_LEN sizeof("-2147483648") - 1
why using sizeof("-2147483648") - 1?
not sizeof(-2147483648) - 1
not -2147483648 - 1
not -2147483649
or else?
What's the difference?

NStal
- 959
- 1
- 8
- 19
8
votes
2 answers
Heroku / Ruby-on-Rails error: image not precompiling
I know that Heroku is running the rake assets:precompile task:
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
-----> Rails plugin injection
…

Geoff
- 9,470
- 13
- 52
- 67
7
votes
3 answers
Why Visual Studio 2010 publish website with source code?
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…

Roc Ho
- 317
- 1
- 3
- 11
7
votes
2 answers
RoR App: "The asset 'application.css' is not present in the asset pipeline" after moving to production server
after moving my Ruby on Rails app to production server (AWS EC2 Amazon Linux 2018.03) pages don't render, because of error "The asset 'application.css' is not present in the asset pipeline" (precompiled files are presents in…

Artur
- 125
- 1
- 2
- 6
7
votes
2 answers
underscore.js precompiled templates using
I want to use precompiled underscore.js templates. I use _.template().source and save result in file. But I don't understand, how to use this templates. Precompiled templates is strings, and I can't cast it to a function. I try to use eval, but it…

LMnet
- 605
- 1
- 8
- 17