Export a .env file to a web server

I find it annoying to manually export the Laravel .env file to Nginx, so I've created a simple exporter, which can be found at https://github.com/RamyTalal/Exporter. The exporter currently supports Nginx, Apache, IIS, and lighttpd.


$ php artisan env:export nginx --file=.env
fastcgi_param key1 "value1";  
fastcgi_param key2 "value2";  

Ramy Talal

Read more posts by this author.