Symfony SSH sync
This small script is intended to be used on SpartUp as a deploy automating tool on our first project alpha state. With it, you can deploy a Symfony application on an limited server (as a shared one like 1and1, etc.) with only one command, all you need is ssh access to the remote server and git, ssh and a mysql server on your workstation.
On each deploy, it will generate a new clean installation (be careful, because it will delete previous data if a database or directory with the same name exists) on your workstations from a git repository, and will upload and deploy it on the remote server.
The usage is really simple, if you don't pass any of the arguments, you will be asked for it on runtime:
$ ssshsync [arguments] Arguments: -n Project name -t Git tag to be deployed -g Git host url -p Git protocol -u Git username -U Local database user -r Local database user with CREATE and DROP database permissions -H Remote database host -d Remote database name -R Remote database username -S SSH host -s SSH username -f SSH destination directory -x Loads fixtures -c Clean local project generated files and database