> First thing you can do is to run the following command in application > directory (as "git" user) to make sure the needed assets are precompiled: > > RAILS_ENV=production bundle exec rake assets:precompile
Ok I ran that command as "git" user and gave me some errors. [root@gitorious me]# runuser -l git -c 'bash' bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell bash-4.1$ cd /var/www/gitorious/app/ bash-4.1$ RAILS_ENV=production bundle exec rake assets:precompile Failed loading some test dependencies: cannot load such file -- ci/reporter/rake/minitest /opt/rubies/ruby-1.9.3-p484/bin/ruby /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets Failed loading some test dependencies: cannot load such file -- ci/reporter/rake/minitest rake aborted! Permission denied - /var/www/gitorious/app/public/assets/cancel_grey-6a606b84ac8e6586146cb972285d4dee.png+ /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/static_asset.rb:42:in `write_to' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/static_compiler.rb:39:in `block in write_asset' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/static_compiler.rb:36:in `tap' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/static_compiler.rb:36:in `write_asset' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/static_compiler.rb:20:in `block in compile' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:219:in `block in each_logical_path' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:206:in `block (2 levels) in each_file' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each_entry' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:204:in `block in each_file' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each_file' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/sprockets-2.2.2/lib/sprockets/base.rb:217:in `each_logical_path' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/static_compiler.rb:18:in `compile' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:56:in `internal_precompile' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>' Tasks: TOP => assets:precompile:primary (See full trace by running task with --trace) rake aborted! Command failed with status (1): [/opt/rubies/ruby-1.9.3-p484/bin/ruby /var/...] /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:12:in `ruby_rake_task' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task' /var/www/gitorious/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>' Tasks: TOP => assets:precompile (See full trace by running task with --trace) > What's the owner of the files in public/dist/ and public/ui3/ ? Everything is owned by root:root but other has r-- or r-x. bash-4.1$ ls -l public/dist total 16 drwxr-xr-x 5 root root 4096 Dec 24 12:50 bootstrap drwxr-xr-x 2 root root 4096 Dec 24 12:50 css drwxr-xr-x 3 root root 4096 Dec 24 12:50 images drwxr-xr-x 2 root root 4096 Dec 24 12:50 js bash-4.1$ ls -l public/ui3/ total 52 -rw-r--r-- 1 root root 268 Dec 24 12:50 autolint.js -rw-r--r-- 1 root root 880 Dec 24 12:50 buster.js drwxr-xr-x 2 root root 4096 Dec 24 12:50 css drwxr-xr-x 2 root root 4096 Dec 24 12:50 dist -rw-r--r-- 1 root root 1150 Dec 24 12:50 favicon.ico drwxr-xr-x 2 root root 4096 Dec 24 12:50 iconic drwxr-xr-x 3 root root 4096 Dec 24 12:50 images drwxr-xr-x 6 root root 4096 Dec 24 12:50 js drwxr-xr-x 3 root root 4096 Dec 24 12:50 lib -rw-r--r-- 1 root root 3492 Dec 24 12:50 Makefile -rw-r--r-- 1 root root 505 Dec 24 12:50 package.json -rw-r--r-- 1 root root 314 Dec 24 12:50 README.md -rw-r--r-- 1 root root 45 Dec 24 12:50 todo.org -- -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] --- You received this message because you are subscribed to the Google Groups "Gitorious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
