CodeIgniter Forums
Best way to make auto-installer .. CI 4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Best way to make auto-installer .. CI 4 (/showthread.php?tid=76485)



Best way to make auto-installer .. CI 4 - michael_zz - 05-16-2020

Hello Smile
I've developed a web app using CI 4 and want to make an auto-installer for it ..

can I just upload the (.env) file and change variables in it using installer to work in production? or there's a better way to deploy my application?

Thanks!


RE: Best way to make auto-installer .. CI 4 - jreklund - 05-17-2020

Hi, I would suggest that you create a .env.template file that you copy and rename into .env and use a string replacement in PHP to update your predefined variables.