Displaying 20 results from an estimated 4000 matches similar to: "Learning Ruby on Rails 3.1 - deployment - Error (cs.jpg isn't precompiled)"
2013 Mar 15
1
Difficulty with UNIQUE
I need to extract labels from Excel input data to use as dimnames later on.
I can successfully read the Excel data into three matrices:
capacity <- read.csv("c:\\R\\data\\capacity.csv")
price.lookup <- read.csv("c:\\R\\data\\price lookup.csv")
sales <- read.csv("c:\\R\\data\\sales.csv")
The values to be used as dimnames are duplicated in the matrices.
For
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
--
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
2012 Mar 29
25
Unable to deploy to Apache
Hi All,
Can someone please help? I''ve been banging my head against for wall
for 2 months; all of which has been spent trying to set up ROR. So I
actually haven''t written 1 line of code :( Any help would be greatly
appreciated :)
I''m following the 4th edition of "Agile Web Development with Rails".
So, I''m able to deploy the site via WEBrick.
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 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
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
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
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
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"
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
2013 May 01
2
Is there any way to update the javascript when I reload the page using rails?
Hi,
I need fix any bugs in a rails project. The problem is every time I change
anything in javascript I have to make
bundle exec rake rails_group=assets assets:clean RAILS_ENV=development and
then
bundle exec rake rails_group=assets assets:precompile RAILS_ENV=development
and finaly restart the rails server. This way spend 10 min.
Exists any other solution?
--
You received this message
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...
.....
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:
2013 Oct 12
3
Assets not loading in production
Hello,
(Rails 4, Ruby 2)
I am trying to deploy my first rails app in a production environment, but
cannot get the assets to load. The site is hosted on Webfaction, they
advise to create a "static app" to serve the assets which I have done. But
I don''t understand how my rails app then knows about the static app.
At the moment, in production inside the head it prints out...
2011 Nov 26
1
ActionController::RoutingError (No route matches [GET] "/image.jpg"):
I am using rails 3.1.3.
Inside config/ application -> config.assets.enabled = true
Inside development.rb -> config.assets.compress = false
Inside production.rb -> config.serve_static_assets = false;
config.assets.compile = false
I have images placed in assets/images. If i do localhost:3000/assets/
image I get the image in the browser, but
unfortunately, on the browser i am
2011 Aug 18
1
Rails 3.1rc6 assets / precompile change
I''m currently using Rails 3.1rc5, and deploy with capistrano. During
deploy, I precompile the assets on the server using assets:precompile
after deploy:symlink.
I noticed that "group :assets" gems in my gemfile were being included
in my production application processes (and adding a lot of memory
usage), even though they are only used during the deploy.
It looks like this
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,