I now have my application on Symfony 1.4 on the server. I use FileZilla to upload files, but how can I now use the command line, for example, plugin:publish-assets?
Is this possible with FileZilla?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To work with symfony’s CLI in production, you need SSH access to the server the application is hosted on. You cannot run shell commands (like
symfony) through FileZille; FileZilla is FTP software and nothing more.Many shared hosting providers do not provide SSH access because of the inherent security risks involved. You need to find out if your host provides SSH access, get it enabled if it’s not, or move to a new host if having shell access is crucial.
CLI access for a symfony makes a lot of common tasks easier to manage in production, but what you’re asking (deploying assets to the web directory) can be done with only FTP access.
There is a whole chapter written on deploying a Symfony 1.4 application
In your case, just run
php symfony plugin:publish-assetslocally, then push your code via FTP.I’d strongly recommend looking into a hosting environment that does offer SSH access though. Combining symfony with a VCS like git and setting up your server to pull tags directly from your repository, to simply using symfony’s
project:deployCLI task for deployment makes managing the code in production oh-so-much easier.