I think I talked about this before, but don’t remember. I’ve read the Slim 3/4 docs on deployment to remote web server. I typically use ‘rsync’ command with a “–exclude-from” of files not to copy like this:
rsync -rav --exclude-from 'publish-exclude-list.txt' ./ user@remote:~/{subdir}/
This copies all my files and all the “vendor” files from the Slim skeleton. Not to long back, my website got hacked because the vendor/phpunit
has the ability for hackers to do some not-so-great ™ things.
So I updated my exclude list to be like this
publish.sh
publish-exclude-list.txt
*.code-workspace
.[A-Za-z]*
composer.phar
logs
vendor/phpunit
Does anyone have recommendations of other Slim Skeleton files not to deploy beside phpunit
?
TIA!