My website is created using symfony2. The site is working fine on my local machine but after hosting it, the homepage css
files are not loading. This is how I have written the code:
{% block stylesheets %}
{{ parent() }}
<link href="{{ asset('assets/css/public/shop/shopHome.css') }}" rel="stylesheet" media="screen" >
<link href="{{ asset('assets/css/public/introPopups.css') }}" rel="stylesheet" media="screen" >
{{ user_apply.stylesheets() }}
{% endblock %}
And the error is
http://example.com/project/web/assets/css/public/shop/shopHome.css Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Looks like you missed to execute on production
php app/console assets:install web --symlink
Check if you have installed all the dependencies in composer.json Try running
composer install
inside your main app repo where composer.json is present.
If composer not installed, try
If this doesn't work, please see & share app logs in:
tail -f app/logs/prod.log