An FTP deployment tool build with bash. This will run in any linux machine with out any requirements. You can upload your code to a number of machines.
Just download the 3 files in the src folder.
The dploy file will hold all the server requirements. All of the attribitutes are required. Skipping one at this point, will most definetely break something.
name: server 1
scheme: ftp
host: ftp.myserver.com
port: 21
user: USER
pass: PASSWORD
path-local: /var/www/dploy/
path-remote: public_html/
save-dates: false
----NEXT----
name: server 2
scheme: ftp
host: ftp.myserver.com
port: 21
user: USER
pass: PASSWORD
path-local: /var/www/dploy/
path-remote: public_html/
save-dates: true
----NEXT----
You can add multiple servers, with the same format. It will upload your code to the servers in the dploy file
To execute the script simply go into the directory and run
bash run.sh
This script was inspired by another tool dploy This script would handle all the github files and upload them through FTP
This is my first bash file, so things might not work as expected. Feel free to Optimize the script if you feel something needs changed.
The MIT License (MIT)
Copyright (c) 2013 Stelios Philippou
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.