CSS Asset Compilation Error

I am trying to deploy a Rail 3.1.1 application on CentOS 6

This is the error I get

Error Compiling CSS Errno::ENOENT: No Such File or Directory - /var/www/vhosts/MySite/MyAPP/tmp/cache/assets/sprockets%t43t34t34t...t34t-r32r-r23.lock /usr/local/lib/ruby/1.9.1/tempfile.rb:343:in 'rmdir' 

I appreciate the help.

+6
source share
2 answers

There were actually 2 problems. At first the permissions were wrong. and secondly, as Nerian said, you need to clear the tmp folder.

To set the correct permissions

 chown apache.root yourapp -R chmod 755 yourapp -R 

Empty tmp folder

 rake tmp:pids:clear rake tmp:sessions:clear rake tmp:sockets:clear rake tmp:cache:clear 
+22
source

If you are using an Apache server, you just need to make sure that the www data of the Apache account can follow quotes in the directory.

 chown -R www-data:www-data . service apache2 reload 
0
source

Source: https://habr.com/ru/post/908092/


All Articles