Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: The "env.php" deployment config file isn't writable. in /code/vendor/magento/framework/App/DeploymentConfig/Writer.php:156
Stack trace:
#0 /code/vendor/magento/framework/App/Cache/State.php(104): Magento\Framework\App\DeploymentConfig\Writer->saveConfig()
#1 /code/vendor/magento/framework/App/Cache/Manager.php(77): Magento\Framework\App\Cache\State->persist()
#2 /code/vendor/magento/framework/App/ObjectManager/Environment/Compiled.php(121): Magento\Framework\App\Cache\Manager->setEnabled()
#3 /code/vendor/magento/framework/App/ObjectManagerFactory.php(191): Magento\Framework\App\ObjectManager\Environment\Compiled->configureObjectManager()
#4 /code/vendor/magento/framework/App/Bootstrap.php(212): Magento\Framework\App\ObjectManagerFactory->create()
#5 /code/vendor/magento/framework/App/Bootstrap.php(127): Magento\Framework\App\Bootstrap->__construct()
#6 /code/pub/static.php(10): Magento\Framework\App\Bootstrap::create()
#7 {main}
thrown in /code/vendor/magento/framework/App/DeploymentConfig/Writer.php on line 156