When I run
php app/console assetic:dump
The contents of the files are dumped in the console and the files are not generated.
This happens with --env=prod and/or --no-debug. Being Windows, I cannot get to the top to see if there is even an error. Never had this before, what could it be?
PS: I'm using "symfony/assetic-bundle": "2.1.*"
I though Java was installed because PHPstorm was working, but I needed to install the JRE.
Related
I just pulled my project from git. The problem i am facing its that it has no bin directory, where the console is placed.
How do i install it?
I tried composer require console and composer require symfony/console but nothing happened, it finishes with an php bin/console cache:clear and it returns a KO exit because there is no console.
I also tried to copy a bin directory from other projects with the same version (3.4.8) but it breaks saying something like the kernel is not added correctly.
I appreciate all kind of help.
Thanks a lot.
I am trying to install assets on my sylius project, and I am facing problem :
COMMAND: php app/console sylius:install:assets
ERROR AFTER EXECUTING COMMAND: This command terminated with a permission error
I found solution of a problem, before you guys try to install assets be sure to clear cache, but you might get into a trouble with memory, so edit your
app/console file and add ini_set('memory_limit','-1');
and after that run cache clear, and install assets and everything will be fine :)
I developed a project using symfony2/PHP and now I am willing to shift this project to another machine how can I do the same
I tried following
1)I copied project folder to www folder of another machine
2)I edited app\config\parameters.yml on another system
but is not working its giving different erros
Can any one tell me exact staeps
Moving the source and the database should be enough. It is possible, you may have to clean cache.
php app/console cache:clear
Try clearing cache; open console / terminal and type php app/console cache:clear
Try chmod / chown or if you are on a windows machine, try change the owner, check permissions
Try re-run: php composer.phar update
Check your php-version and extensions. (See: http://symfony.com/doc/current/reference/requirements.html)
Cleaning the cache worked for me.
type php app/console cache:clear
I have two machines, a development machine running Windows and a production machine running Linux.
The problem I have is that Assetic is not deploying (or finding any) assets in the Linux production machine (neither in dev nor in prod mode). It was working in the previous deployment attempts, then all of a sudden it stopped without having changed anything in the system or the config.yml/config_prod.yml file.
The command I am using for dumping:
sudo php app/console assetic:dump --env=prod --no-debug
The assets have been defined in the bundles' public folders and have been installed beforehand and moved to the web folder with:
php app/console assets:install --symlink web/assets
FWIW, I found out that mthaml-bundle was causing the problem, which I am using in the project. Reverting to an older commit solves the problem, in the meantime I am going to report it.
I've been developing a Symfony2 app locally and am now at the stage where I would like to deploy it in it's production environment on a server.
I've uploaded all my files and tried to run:
php app/console cache:clear --env=prod
Which gives the following error:
As you can see, it's trying to write to my C:/ drive for some reason. Doing a regular cache:clear works fine, but I can't swap it to the production environment.
At this point, trying to use the app.php version simply loads a blank page. I can't figure out why my app would be trying to write to a directory on a previous server.
Help?
Try empty the cache folder
rm -rf app/cache/*
After this the cache:clear --env=prod command work properly.