eZ Community » Forums » Install & configuration » CSS doesent load in dev
expandshrink

CSS doesent load in dev

CSS doesent load in dev

Tuesday 10 September 2013 4:37:26 pm - 3 replies

 I installed 2013.7. When I switch from environment prod to dev in the vhost file.  The css doesent load. Examples are http://ez5.local/css/3c5fbcb_bootstrap_1.css
 and http://ez5.local/css/3c5fbcb_responsive_2.css Both not in the css folder. 

The access rights on the css folder is 777

Tuesday 10 September 2013 5:57:42 pm

Hi,

 

Did you dump the assets ? https://confluence.ez.no/pages/viewpage.action?pageId=7438581

cd /<ezp5-root>
php ezpublish/console assets:install --symlink web
php ezpublish/console ezpublish:legacy:assets_install --symlink web
php ezpublish/console assetic:dump --env=dev web

Modified on Wednesday 11 September 2013 12:26:45 pm by Nicolas Lescure

Wednesday 11 September 2013 11:31:30 am

You need to do assetic:dump to dev, what I would advice is simply to do a

$ php ezpublish/console assetic:dump 

And don't forget to clear the cache

$ php ezpublish/console cache:clear

Wednesday 11 September 2013 1:36:11 pm

yes Nicolas I did that. Still doesnt work. 

So I did "assetic: dump to dev" and cleard the cache. Looks like it is ok now. Maybe this should be under the set up documentation. Under is the terminal dialog, if it cold be of any interst for anyone.

 

That made it work in dev mode. Thanks folkshappy.gif Emoticon

 
 
Erlands-MacBook-Pro:ez52013.7 eflaten$ php ezpublish/console assetic:dumpDumping all dev assets.Debug mode is on.
 
13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_yui-min_1.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_jquery-1.9.1.min_2.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_jquery-ui-1.10.1.custom.min_3.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_ezflyout_4.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_ezgallery_5.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_ezgallerynavigator_6.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_ezsimplegallery_7.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_handle_transition_8.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_heightresize_9.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_init_ua_10.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_insertmedia_11.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_toggle_class_12.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_video_13.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/js/169f062_hinclude_14.js13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/css/3c5fbcb.css13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/css/3c5fbcb_bootstrap_1.css13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/css/3c5fbcb_responsive_2.css13:22:31 [file+] /Library/WebServer/Documents/ez52013.7/ezpublish/../web/css/3c5fbcb_video_3.cssErlands-MacBook-Pro:ez52013.7 eflaten$ php ezpublish/console cache:clear
 
                                                                                                   [RuntimeException]                                                                               Unable to write in the "/Library/WebServer/Documents/ez52013.7/ezpublish/cache/dev" directory                                                                                                   
 
cache:clear [--no-warmup] [--no-optional-warmers]

Modified on Wednesday 11 September 2013 1:42:27 pm by Erland Flaten

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from