Time to ship your symfony app to production? Here are some flight checks. Lets assume your symfony app is in folder symfony-app
1. Don’t put Symfony app in the public accessible folder on your server
If your servers public facing folder is, say, /var/www/html, then don’t put the whole symfony folder there.
Choose another deeper and non-public facing folder. Let say /apps/symfony-app. I will list how you would put the public facing folders later.
For this to happen run this command on your server
2. Pushing your code to production server
cd /apps git clone https://firstname.lastname@example.org/username/symfony-app.git symfony-app