Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake cg:compile_assets aborted #376

Open
mightydread opened this issue Jan 12, 2016 · 10 comments
Open

rake cg:compile_assets aborted #376

mightydread opened this issue Jan 12, 2016 · 10 comments

Comments

@mightydread
Copy link

While trying to deploy crabgrass I get the following:

rake cg:compile_assets --trace
rake aborted!
Don't know how to build task 'cg:compile_assets'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/task_manager.rb:62:in `[]'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:149:in `invoke_task'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/var/lib/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
@azul
Copy link
Contributor

azul commented Jan 12, 2016

@mightydread I don't think cg:compile_assets exists as a rake task. Where did you learn about it? Maybe it's an issue with the docs. At least rake -T does not show it for me.

@mightydread
Copy link
Author

I found it in the documentation.. I checked rake -T and found the equivalent.. Thanks...

@azul
Copy link
Contributor

azul commented Jan 12, 2016

@mightydread ahh.... compile_assets is only used in production mode it seems. Are you trying to deploy for production and not development?

@mightydread
Copy link
Author

Yes..
Maybe you can help me with that.. Everything went fine, apache is serving the public folder but it stilll complains about icon_png.css not being precompiled. I have followed the production deployment instructions but to no avail...

@azul
Copy link
Contributor

azul commented Jan 12, 2016

We do not use the rails assets pipeline for css - only for js. Lemme lookup how the css is build.

@azul azul reopened this Jan 12, 2016
@azul
Copy link
Contributor

azul commented Jan 12, 2016

@mightydread, please try

  rake cg:images:update_css

@mightydread
Copy link
Author

Errno::ENOENT: No such file or directory @ rb_sysopen - /var/www/crabgrass/public/images/../stylesheets/icon_png.css
/var/www/crabgrass/lib/tasks/images.rb:4:in `initialize'
/var/www/crabgrass/lib/tasks/images.rb:4:in `open'
/var/www/crabgrass/lib/tasks/images.rb:4:in `write_file'
/var/www/crabgrass/lib/tasks/images.rb:46:in `block (4 levels) in <top (required)>'
/var/www/crabgrass/lib/tasks/images.rb:45:in `each'
/var/www/crabgrass/lib/tasks/images.rb:45:in `block (3 levels) in <top (required)>'
Tasks: TOP => cg:images:update_css

@mightydread
Copy link
Author

I created the directory.. and it compiled...
Thank you!

@azul
Copy link
Contributor

azul commented Jan 12, 2016

lemme keep this open as a reminder to create the directory in the rake task and to add it to the install instructions.

@azul azul reopened this Jan 12, 2016
@mightydread
Copy link
Author

Awesome!
Now off to configure the rest... 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants