Major Productions
Major Productions

Reputation: 6042

Runtime error using assetic w/ Symfony 2 on shared hosting

I'm on ICDSoft hosting, so my directory structure looks like:

/
    private/
        app/
        bin/
        src/
        vendor/

    www/
        www/
            bundles/
            app.php

When I try running $ app/console assetic:dump I get the following runtime error:

[RuntimeException]
The source file "/home/thesewingdiva/private/app/../web/bundles/majorproductionssewingdivasite/js/jquery-1.8.3.min.js" does not exist.

Is there a way for me to tell assetic to look in ../www/www/bundles rather than ../web/bundles for the correct assets?

Upvotes: 1

Views: 1897

Answers (1)

AlterPHP
AlterPHP

Reputation: 12717

In app/config/config.yml, in the assetic part :

assetic:
    ...
    read_from: "%kernel.root_dir%/../www/www"
    ...

AsseticBundle configuration documentaion for Symfony2 is here : http://symfony.com/doc/2.0/reference/configuration/assetic.html

Upvotes: 2

Related Questions