sfFtpPlugin - 1.0.0
sfFtpPlugin provides a command to deploy a project over FTP connection.
You are currently browsing
the website for symfony 1
sfFtpPlugin provides a command to deploy a project over FTP connection. If you publish symfony 1.4 projects on shared hosts that offer only ftp without ssh this plugin is for you!
sfFtpPlugin provides deploy command over FTP connection. If you publish symfony 1.4 projects on shared hosts that offer only ftp without ssh/rsync this plugin is for you!
|Włodzimierz Gajda||lead||lp.nilbul.luk <<ta>> wadjag|
Copyright (c) 2011 WÅ‚odzimierz Gajda
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
sfFtpPlugin is a symfony plugin that provides deploy command over ftp connection.
It is useful for hosting symfony projects on shared hosts that do not offer ssh/rsync capabilities.
Install the plugin (via a package)
symfony plugin:install sfFtpPlugin
Define ftp connection parameters in PROJECT/config/ftp.ini
\[production\] host=your.ftp.server.example.net port=22 user=account password=sEcreTPAssWorD dir=/
Define exclusions in PROJECT/config/ftp_exclude.txt
/^cache\// /^nbproject\// /^test\// /^web\/frontend_dev\.php$/ /^symfony$/
Lines that start with semicolon are comments. Semicolon must start the line (it have to be the first character).
Every rule have to be correct regular expressions. Empty lines are ignored.
Example rule to exclude contents of a folder:
Example rule to exclude one file:
symfony ftp:deploy production symfony ftp:deploy production --go symfony ftp:deploy production --go --all-files
Without --go option the command will perform dry run. No files/directories will be trensfered over ftp channel. You will be informed about files that should be updated.
The option --all-files forces complete update of a project. All files (modified and unmodified) will be copied. Excluded files (i.e. files that match rules from ftp_exclude.txt) are never copied.