Displaying 20 results from an estimated 20000 matches similar to: "CSS not compiling in server"
2012 Nov 23
0
problem font-face routes css
Hi
I have a problem with font-face routes on the server,when I open the
site in windows, when I do with linux, works . both use chrome latest
version.
-the fonts are in /assets/fonts/
-in /assets/stylesheets/fonts.css.scss
@font-face
{
font-family: ''OswaldLight'';
src: url (''/assets/Oswald-Light-webfont.eot'');
src:
2013 Mar 10
2
css url paths when moving it to a different folder
Hey. Its simple quation, but have litle problem with this.
Its my path for css - assets/content/stylsheets/my.css
Its path picture for background url - assets/images/picture.gif
I do the following in my.css background: transparent
url(../../images/picture.gif).
but the path is not correct, the image is not found. I tried with one
../ and easy images/picture.gif. Not work. When i add picture in
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 Feb 04
3
Wicked pdf
Hello Guys
I am using rails 3.2.8 and wickedpdf.
Its working well in local but not in production.Below is the production
logs error.
"***************\"/var/www/apps/staging/shared/bundle/ruby/1.9.1/bin/wkhtmltopdf\"
-q \"file:///tmp/wicked_pdf_9892_0.html\"
\"/tmp/wicked_pdf_generated_file_9892_0.pdf\" ***************"
RuntimeError: Failed to
2012 Dec 16
2
css background image not working
Hello,
I''m trying to set the background of a page to an image I have in the
assets/images folder in my rails app.
However, for the life of me I cannot get it to work. When I open up and
inspect the element I keep seeing in the resources that the file cannot be
found with a red "!" next to the image.
I have tried different paths still no avail...
../images.bg.png
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 Jan 03
1
Trying to add bootstrap to existing project, getting CSS compile error: missing file
Trying to add bootstrap to an app being ported to Rails 3.2.3.
I get the following error:
Error compiling asset application.css:
Sass::SyntaxError: File to import not found or unreadable: bootstrap.
Here''s my gem file:
source ''http://rubygems.org''
gem ''rails'', ''3.2.9''
group :assets do
gem ''sass-rails'',
2012 Feb 21
2
Asset Pipeline doubles my CSS refs?
Hi,
I''m trying to properly reference a .css file. Unfortunately the asset
pipeline is doubling my css references which disables my code. What
gets rendered is:
<link href="/assets/sincoraish-screen.css" media="screen"
rel="stylesheet" type="text/css" />
<link href="/assets/sincoraish-print.css" media="print"
2012 Feb 26
0
Served asset /application.css - 304 Not Modified
Hi
I am thinking to hide warning that is ”Served asset /application.css -
304 Not Modified”.
How can I fix something if I change the settings?
I''ve run that is less than
server:
rails new myapp
cd myapp
rake db:migrate
rails s
client:
http://localhost:3000/books
warning:
Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2012-02-26
14:48:35 +0900
Served asset /books.css
2012 Aug 29
7
custom js in rails project
Hello, I have a rails project with one controller and one action, as
simple as posible. And I''m trying to put some custom css and js to my
own index.html.erb (not public/index.html.erb), I inluded this on the
layout file:
layout file:
<!DOCTYPE html>
<html>
<head>
<title>Volei</title>
<%= stylesheet_link_tag "application", :media =>
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...
2013 Jan 31
1
WickedPdf error in production
Hello everyone,
I am using rails -v 3.2.8.
I am using wickedpdf to generate pdf. Its working well in my local machine.
But its not working in production server.
ompleted 500 Internal Server Error in 4443ms
RuntimeError (Failed to execute:
"/var/www/apps/staging/shared/bundle/ruby/1.9.1/bin/wkhtmltopdf" -q
"file:///tmp/wicked_pdf_5855_0.html"
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
2011 Nov 28
9
CSS Problem.
Hi Everyone,
I was going through the Rails tutorial from here:
http://ruby.railstutorial.org/chapters/filling-in-the-layout#top
I was getting this exception on my WebRick server:
Started GET "/assets/blueprint/print.css" for 127.0.0.1 at 2011-11-28
14:43:00 +0530
Served asset /blueprint/print.css - 404 Not Found (0ms)
ActionController::RoutingError (No route matches [GET]
2012 Nov 21
0
What to use //= require_tree or js,css incude tag in application.erb ?
Hi ,
We are using reqiure_tree in our application.js and application.css.
As per i know require_tree include all js and css in application.js and
application.css .
We include application file of both .js and .css in our application.erb.
Q . We include both .js and .css application file in application.erb .
Is including in application.erb, did all .js and .css file are
included in
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 Oct 31
1
HEROKU ROR server - problem with css files
Hi,
I''ve created simple ROR app and commit it to HEROKU server. When I
change
config.assets.enabled = true
and put ''false'' then it works but doesn''t use my .css styesheets.
In case config.assets.enabled = true it doesn''t work...
How can I fix it?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to
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
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
2012 Jan 05
6
assest pipeline how to exclude some css files?
In my assets I have
intranet
|_1.css.scss
|_2.css.scss
internet
|_1.css.csss
application.css
application_internet.css
application_intranet.css
1.css.scss
2.css.scss
3.css.scss
intranet and internet are directories.
In my layout I want to exclude the files under internet and intranet.
I have created
application_internet.css
/*
* application-internet.css
*
*= require_self
*=