Archivio dell'autore: admin

Mysql not restarting

sudo service mysql restart
[ ok ] Stopping MySQL database server: mysqld.
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!


killall mysqld

and then restart:

sudo service mysql restart


How to use fonts on Rails assets pipeline

@font-face {
    src: font-url('/assets/HDV_Peace.eot');
    src: font-url('/assets/HDV_Peace.eot?iefix') format('eot'),
        font-url('/assets/HDV_Peace.woff') format('woff'),
        font-url('/assets/HDV_Peace.ttf') format('truetype'),
        font-url('/assets/HDV_Peace.svg#webfont') format('svg');}

in my config/application.rb I have:

config.assets.paths <<Rails.root.join('app','assets','fonts')
config.assets.precompile +=%w(.svg .eot .woff .ttf)

folder structure


Thanks to: