Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executing "php app/console"-commands on the server

I uploaded my symfony-project (V2.5) to the server (of my provider). Now, I want to execute a command like

"$ php app/console assetic:dump --env=prod --no-debug"

But I have no access to a CLI (command line interface). How can I submit such a command?

Thx Thomas

like image 818
user3844495 Avatar asked Sep 30 '22 07:09

user3844495


1 Answers

If you don't have access to the server (via SSH for example), you can install a bundle which allows you accessing the Symfony2 console via your browser.

Here is the one I'm using : ConsoleBundle.

Once installed, go to the console page (add /_console in URL after app_dev.php) and enter assetic:dump --env=prod --no-debug into the input field.

like image 116
Fidan Hakaj Avatar answered Oct 04 '22 19:10

Fidan Hakaj