Displaying 20 results from an estimated 7000 matches similar to: "Rails 3.1rc6 assets / precompile change"
2013 May 14
4
rake precompile:assets throwing error
While running rake precompile:assets i''m getting the following error
This is the error message:
rake assets:precompile:all RAILS_ENV=production
rake aborted!
undefined local variable or method `establish_connection'' for
ActiveRecord::Base:Class
Please help
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2011 Aug 31
4
Issue with asset pipeline helper with Rails 3.1 final release.
Hi, I''ve just updated my app to the final 3.1 release and deployed it to the
staging server after running tests but there is a problem with the
precompiled assets. The precompiled assets are all in the public directory,
like they were before, Capistrano doesn''t throw any error and running `rake
assets:precompile` in the current directory work as expected. But the asset
2013 May 23
1
rake assets:precompile issue with JS and stylesheets files with similar name
Hi,
I''ve got following two files with same names under javascripts and
stylesheets directories as:
- app/assets/javascripts/test_vendor.js
- app/assets/stylesheets/test_vendor.scss
Essentially a JS and an stylesheet files with same name.
--------------------------------------------------------------
I want these files to be precompiled and served from public directory.
Thus I
2011 Sep 18
12
3.1 asset pipeline + Capistrano troubles
Hello,
I''m having a bit of trouble with the asset pipeline and, I think,
Capistrano.
In my app layout I have:
<%= stylesheet_link_tag "application", "bootstrap" %>
And the relevant bits of the app dir structure are:
app/assets/stylesheets/application.css.scss # Contains ''require_self'' and
''require_tree .'' as usual
2011 Oct 22
1
Deployment issue with Rails 3.1.1
Hi, I''ve recently updated an application to 3.1.1 and Capistrano
started to fail at the assets:precompile task. It''s a strange bug that
don''t always happen (it actually worked a couple of time) and there''s
no error message, it only display "Killed". Running the rake task
locally work though. I''ve reverted to 3.1.0 and now it work with
2013 May 17
1
Heroku - Event_Calendar - preventing assets precompile
My App is hosted currently on Heroku, and I attempted to use
elevation/event_calendar <https://github.com/elevation/event_calendar> to
display events because it supported multiday events. I had it working
locally and looking great, but when I tried to push it to the server, it
caused error during the assest precompile. This in turn brought the whole
site down. I had to roll back a few
2012 Aug 18
0
hosting with speedyrails
hello everyone,
original app: rails 3.1.1
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
I try to host my app into speedyrails using capistrano.
I host my sample application and running. I just get only one error like my assets
were not precompiled. then i solve that by adding "load ''deploy/assets''"
this code in my deploy receipt.
and my
2013 May 08
1
Rails asset precompilation doesn't remove comments. How to enable?
I want to to test precompilation on development mode.
I set:
config.assets.digest = true
config.assets.debug = false
Then I run:
rake assets:precompile:all RAILS_ENV=development
All works, assets are precompiled but comments are not removed.
What options should I provide to make it to remove comments from assets
on precompile?
--
Posted via http://www.ruby-forum.com/.
--
You received this
2012 Jan 04
0
how to avoid pre-compile on deployment ..
I commented the following code in my deploy.rb , to avoid pre-
compiling upon deployment ..
# namespace :assets do
# desc "Compile assets"
# task :precompile, :roles => :app do
# run "cd #{release_path} && rake RAILS_ENV=#{rails_env}
assets:precompile"
# end
# end
but it seems to have no effect .... cap deploy log show precompiling
again...
.....
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
Hello,
In production environment, I have this error ActionView::Template::Error
Not a directory vendor/assets/javascripts/holder.js when in my template I
have this line
<%= image_tag "holder.js/150x200" %>
My production.rb is :
Libapp::Application.configure do
# Settings specified here will take precedence over those in
config/application.rb
# Code is not reloaded
2011 Sep 02
1
can't compile assets on prod due to asset_host config && SSL requirement
My production asset_host config looks like this:
config.action_controller.asset_host = Proc.new { |source, request|
if request.ssl?
"#{request.protocol}#{request.host_with_port}"
else
"#{request.protocol}assets#{(source.length % 4) +
1}.example.com"
end
}
...which is more or less straight from the docs:
2011 Nov 18
0
Assets - find a weird behavior recently and I'd like to understand the original issue
Hi the great community of Rails :)
Okay... Recently I had a big problem with javascript (JQuery) in one
of my Rails 3.1 application.
The problem was that the behavior of my javascript animations were
acting in a very weird way, and the strangest thing was it happened
only in development for the exact same code as the one of the
production application.
What I tried: (if you''re in a
2012 Nov 02
2
jquery error in production precompiled
In my rails project, for production precompile
I do : rake assets:precompile RAILS_ENV=production
But it not work for jquery.
In my firegub console, I got the error
“ReferenceError: JQuery is not defined “
at production.rb
# Disable Rails''s static asset server (Apache or nginx will already do this)
config.serve_static_assets = true
# Compress JavaScripts and CSS
2014 Feb 18
0
Compiled assets are not found in production mode run locally
I have a strange behaviour with compiled assets when running a simple draft
app locally:
RAILS_ENV=production rake assets:precompile
The aove command generated some css and js with finger printed values:
i.e. application-43dcf2bdff355d2c3053e2aade23881a.css
application-c67be452a576850d0c11559f908180e3.js
etc.
Run in production:
rails s -e production
There are no CSS fiound !
When
2013 Mar 03
1
Deploy with Capistrano. Bundle install freezes indefinetly.
I am fighting with this for 5 days... i''m getting crazy!
Here is my deploy.rb:
require "bundler/capistrano"
require "rvm/capistrano" # Load RVM''s capistrano plugin.
set :rvm_ruby_string, :local # Or whatever env you want it to run
in. ''1.9.3''
set :domain, ''www.xxx.com''
set :application,
2013 Jun 05
1
Precompile with compression in development
Hi,
I''d like to do precompilation with compression in development mode.
I''ve set
config.assets.js_compressor = :uglifier
config.assets.css_compressor = :sass
in development.rb.
But compression only seems to work in production mode, is that right?
Michael Kastner
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2011 Sep 13
1
"Isn't precompiled" message while compiling
I have one JS library that references image assets in /app/assets/images/subdir/.
When I execute "bundle exec rake assets:precompile RAILS_ENV=production", I receive an error that the image file in /subdir/ isn''t precompiled ... while I''m telling it to compile all assets.
I''ve tried clearing out /public/assets/.
Any ideas?
Thanks,
Christopher Thielen
--
2013 Feb 27
4
My SCSS compiled CSS lacks "/assets" in the generated urls
Running "rake assets:clobber assets:precompile" will generate files like
"application-xxx.css" with incorrect urls after upgrading to Rails 4.
For example url(/fields/xxx.png) when it should be
url(/assets/fields/xxx.png). For some unknown reason it worked once in
development mode, but after running rake assets:clobber I can''t get it
to work again...
Any ideas
2011 Dec 26
1
Learning Ruby on Rails 3.1 - deployment - Error (cs.jpg isn't precompiled)
Hi guys,
I''ve followed the Agile Web Development with Rails book and I''m up to
deployment. I started a Ubuntu 10.1 LTS server on Amazon EC2 for
testing, got Apache 2, mysql, rvm, ruby 1.9.2, rails 3.1 and phusion
passenger up and running as per the book.
When I come to running the actual site, it says "We''re sorry, but
something went wrong."
In
2014 Apr 14
0
Foundation & Authlogic
Seems I can get either Foundation or Authlogic to work but not both -
After bundle install when I do a rails g foundation:install I get the
following:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.1.0/lib/acti
ve_record/dynamic_matchers.rb:26:in `method_missing': undefined local
variable o
r method `inheritable_attributes' for ActiveRecord::Base:Class
(NameError)