Questions tagged [precompile]

All questions regarding the precompile process should be tagged here

469 questions
35
votes
5 answers

rake assets:precompile RAILS_ENV=production not working as required

I am trying to precompile assets using the command rake assets:precompile RAILS_ENV=production, but I always get the error below. ** Invoke assets:precompile (first_time) ** Execute assets:precompile /usr/bin/ruby /usr/bin/rake…
28
votes
2 answers

Verbose Output From rake assets:precompile

I've just started using the asset_sync gem and my assets seem to be being compiled out of order, with Sass files unabled to access variables defined in other Sass files. What would really help me narrow down the issue is being able to see exactly…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
22
votes
4 answers

Modern C++: initialize constexpr tables

Suppose I have a class X, which functionality requires a lot of constant table values, say an array A[1024]. I have a recurrent function f that computes its values, smth like A[x] = f(A[x - 1]); Suppose that A[0] is a known constant, therefore the…
17
votes
3 answers

Rails 4 - NO manifest.json after assets precompile on production server

Here is the app/assets/ for a Rails 4.2 app. There are 3 bootstraps js and css files. After deploying to production (ubuntu 12.1), assets precompile was done on server (deployed under suburi): RAILS_ENV=production bundle exec rake assets:precompile…
user938363
  • 9,990
  • 38
  • 137
  • 303
16
votes
1 answer

Precompile during publish for Azure Web Services

We are using Azure Web Services (not Web-sites) and run ASP.Net MVC 5.1 application inside it. When I publish web-sites through Web-deploy, I have an option to "Precompile during publishing": When I publish to Azure Web Services, I can't find this…
trailmax
  • 34,305
  • 22
  • 140
  • 234
15
votes
4 answers

rake assets:precompile taking extremely long to complete

In my dev sandbox RAILS_ENV=production rake assets:precompile is taking over 4 minutes to complete. Is this normal. On heroku it is taking over 10 minutes to do the job and sometimes is timing out. Is there any way to disect this and/or speed it…
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
15
votes
5 answers

Define function / method if not defined before c++

I don't use C++11 yet, so I wrote the functions to_string(whatever) by myself. They should only be compiled if they don't exist. If I switch to C++11, they should be skipped. I have something like this: #ifndef to_string string to_string(int a){ …
MaestroGlanz
  • 321
  • 3
  • 12
14
votes
1 answer

Are Hibernate Named Queries precompiled in the true sense?

Pre-compiled queries are compiled and cached in advance by DB vendor (like oracle,sql server etc) so that they can be faster for successive calls like prepared statement. In Hibernate Named queries are said to be pre-compiled at web server start up.…
M Sach
  • 33,416
  • 76
  • 221
  • 314
14
votes
1 answer

Is there a way to precompile node.js scripts?

Is there a way to precompile node.js scripts and distribute the binary files instead of source files?
Mark
  • 67,098
  • 47
  • 117
  • 162
13
votes
1 answer

Vendor CSS stylesheets in Rails 3.1 and the asset pipeline

I use Twitter Bootstrap (not that that matters but it's a third party CSS file). Because it's a third party CSS "library" it should go in /vendor/assets/stylesheets. So far so good. Now, I would like to concatenate all CSS in one application.css in…
Cimm
  • 4,653
  • 8
  • 40
  • 66
13
votes
3 answers

Rails 4.2 Rails.application.config.assets.version doesn't invalidate digest asset file names

I have a Rails 4.2.4 (Ruby 2.2.2) application and I am serving static assets via Cloudfront. If Cloudfront is serving something you don't want, there are two possibilities: Invalidate the content in Cloudfront or Change the name of the asset…
Stefan Kühn
  • 339
  • 2
  • 11
13
votes
6 answers

rake assets:precompile throws Sass::SyntaxError: Invalid CSS after "*/"

I hope this isn't a duplicate problem; I've tried other solutions on SO with no effect When pushing my app to Heroku, the push has failed because application.css has not been able to compile. My terminal output: Running: rake assets:precompile rake…
Will Taylor
  • 1,994
  • 2
  • 23
  • 36
13
votes
2 answers

Excluding files from assets:precompile in rails

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…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
13
votes
1 answer

config.assets.precompile not adding vendor/gem assets

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…
Peter Ehrlich
  • 6,969
  • 4
  • 49
  • 65
11
votes
8 answers

Distribute a application to the public so they can compile, without revealing the source

I have a proprietary application I would like to hand out to a few people for testing, except we do not want to reveal the source to them. The application is written in C++ for Linux. It links against readily available packages on the Fedora/Ubuntu…
The Unknown
  • 19,224
  • 29
  • 77
  • 93
1
2 3
31 32