When we are going to upload an environment for production on a server, standard hosting, via ftp or ssh. What to use to upload only the files needed for the application, without having to upload tests, documentation, etc.
I use php
Thank you
When we are going to upload an environment for production on a server, standard hosting, via ftp or ssh. What to use to upload only the files needed for the application, without having to upload tests, documentation, etc.
I use php
Thank you
The most common tools for this task are the version handlers.
The most popular are GIT and Subversion, also known as "SVN".
GIT offers the public repository on github.com. There are also plans for hosting private repositories.
Alternatively, you can install a Git server within a private environment on your own server, for example. That way you would not be dependent on third party services.
Subversion is an older git competitor. The handling is simpler and also widely accepted, although there are controversies that pejorativam with respect to Git.
For those who can not install git or subversion on the hosting server (usually on shared hosting), you have to manually do the same or create scripts or software on your own.
There are some commercial software on the market as well as open-source initiatives like these:
If you search on google, "php git ftp" you will find some others.
This first one is my own. "Tipui GIT FTP".
For more than 2 years I have not changed these codes, but it works fine.
There are certain bugs such as missing bug treatments especially when there is some error in sending a file. There's also a way to continue an interrupted upload.
Another shortcoming is lack of SFTP support, that is, FTP under SSL.
All code is written in PHP using PHP PHP functions link
When I get some spirits I'll be playing with this project again.