Reputation: 77
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?
Upvotes: 1
Views: 1835
Reputation: 35350
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-assets
locally, 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:deploy
CLI task for deployment makes managing the code in production oh-so-much easier.
Upvotes: 2