All questions regarding the precompile process should be tagged here
Questions tagged [precompile]
469 questions
0
votes
1 answer
Rails Paperclip precompile error
I modified my Paperclip-using model like this:
class UsersPicture < ActiveRecord::Base
attr_accessible :user_id, :users_picture_id, :photo
belongs_to :user
has_attached_file :photo,
:url => "users_pictures/:attachment/:id/:basename.:extension",
…

user1697061
- 255
- 3
- 14
0
votes
1 answer
Include rails precompiled asset pipeline .JS with md5 hash in filename in static page? or exclude it from getting a hash in the filename?
Rails 3.2 asset precompiling appends the filename with a hash. I would like to use some of my assets outside of rails ( for a maintenance page ) I would like to include some .JS files from the precompiled asset folder.
Is there a way exclude…

Rubytastic
- 15,001
- 18
- 87
- 175
0
votes
2 answers
Check if a framework is linked at precompile
Is there a precompiler directive that checks if a framework is linked in an Obj-C/Cocoa project?
For example, I have a class of useful categories with some MapKit categories. However, if MapKit is not linked to the framework, then those categories…

Martin
- 11,881
- 6
- 64
- 110
0
votes
2 answers
How should I handle Cloudinary's cloudinary.yml in a public repo?
I'm trying to use Heroku and Cloudinary together however slug compilation is not working because config vars are not present. Cloudinary expects an environmental variable or cloudinary.yml. I don't want to make the repo a private repo to store the…

Teffen Ellis
- 113
- 6
0
votes
1 answer
Better Rails 3 Asset Handling for `cap deploy`
I notice the default "deploy" task does the asset precompilation on the remote machine, which has these ill effects:
Weird glitchy assets during the time it's precompiling (on the live site)
Errors in the config cause downtime with a 500 response…

rking
- 1,602
- 1
- 10
- 8
0
votes
1 answer
Can't make asset precompile before pushing to heroku
I need to make it to make my jQuery working on Heroku.
Here is my console:
$ rake assets:precompile
c:/Ruby192/bin/ruby.exe c:/Ruby192/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
Access denied…

Denys Medynskyi
- 2,353
- 8
- 39
- 70
0
votes
3 answers
Rake aborted! when locally Precompiling Assets
When running bundle exec rake assets:precompile on my dev machine I get a rake aborted error:
cannot load such file -- rack/google_analytics
This is in my gemfile in the production group so isn't installed on my dev machine:
group :production do
…

Rich
- 2,164
- 1
- 25
- 39
0
votes
2 answers
Bootstrap popover not working on heroku
Bootstrap's popover works perfectly on my local machine but doesn't seem to work on heroku. I can't figure out why. Here's the relevant files/code I can think of:
Bundler.require(*Rails.groups(:assets => %w(development test)))
I also tried lazy…

Matthew Berman
- 8,481
- 10
- 49
- 98
0
votes
1 answer
Using Mailer with Assets precompiled in production
I'm having problems using Mailer from the command prompt in my production environment. Using this command
Mailer.function.deliver
Gives this error
Errno::ENOTDIR: Not a directory - /assets/
from…

Mark Bathie
- 180
- 1
-1
votes
1 answer
Pre Compiling HTML files for publication as static files
I have a project whereby a large number of technical specifications are currently 'published' as HTML files. The HTML files are not hosted on a web server, but zipped up and distributed to be access from a PC's local file system.
I am exploring the…

BENBUN Coder
- 4,801
- 7
- 52
- 89
-1
votes
1 answer
Qt App crashes on loading qml in retail mode if the QML was pre-compiled in Qt 5.8 and above
I have Qt App that uses QQuickView which loads qml using qrc: path because the qml is pre-compiled. This used to work fine until Qt 5.7 But with Qt 5.8 and Qt 5.9, the application crashes in retail mode. If I try to load qml run-time directly by…

Naveen
- 19
- 4
-1
votes
1 answer
TFS Msbuild Precompiling
I just need to precompile my asp.net project on build server.
I don't want to use that code. "C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler"
I need to precompile my code on build server and I can not create any publish profile…

Olgaç Öcek
- 11
-1
votes
1 answer
Exclude line from compilation via Makro C++
I've got some problem, which might be simple to solve.
I have code like this:
#define _MG_ALL //This might be defined in some other headerfile
#ifndef _MG_ALL
#define MG_ALL ????>
#else
#define MG_ALL
#endif
In the code it is used like…

MaestroGlanz
- 321
- 3
- 12
-1
votes
1 answer
Rails precompile before Heroku push explained to beginner?
Self taught aspiring rails dev here. I learned the hard way I needed to run
rake db:clean
rake db:clobber
rake db:environment
rake db:precompile
before running git heroku push master. All answers found online presupposed knowledge. Would greatly…

maxwellsandstein
- 41
- 3
-1
votes
2 answers
Rails: Precompile for Heroku?
Before deploying a new version of my app on Heroku, I need to do this in my console (for css and js to work on Heroku): RAILS_ENV=production bundle exec rake assets:precompile.
I just picket this code line from a forum, and I my questions is:
1)…

allegutta
- 5,626
- 10
- 38
- 56