I'm using Magento2 on Debien 8, and after every change, I lunch the
php bin/magento setup:upgrade.
The problem here is when I lunch this command I need to give permission to magento folder using this command on Debien terminal
chmod -R 0777 magento2 (the folder)
is there any solution to fix that ?