XG-Proyect-v3.x.x icon indicating copy to clipboard operation
XG-Proyect-v3.x.x copied to clipboard

Script install XG Proyect

Open duhow opened this issue 3 years ago • 7 comments

This script will automatically install XG Proyect by calling the specified server URL and variables for MySQL and admin user.

duhow avatar Dec 31 '21 13:12 duhow

El instalador creo q debería seguir siendo en php, esta bueno probar otros formatos, lo bueno que debería estar el instalador es separarlo del núcleo algo como Prestashop que si no borras la carpetas install no deja ingresar al admin panel.

Lo otro que me gusto es que implementaste Dotenv o Variables de entornos XGP debería tener ese método para hacer mas seguro.

jonamix-ar avatar Dec 31 '21 14:12 jonamix-ar

Si, se podría hacer un CLI de install.php para el propio servidor y que hiciese la instalación ahi mismo. Habrá que evaluar cómo hacerlo pues.

Este script lo tuve que montar (al menos) para inicializar la base de datos a la hora de hacer los tests que ya estaban funcionando... y aun así sigo con problemas. 😂

duhow avatar Dec 31 '21 14:12 duhow

Why’d you run this instead of the regular installer?

LucasKovacs avatar Dec 31 '21 18:12 LucasKovacs

Also the current installer, is not that good, I have to admit that it is not my best job. It will be rewritten XGP 4

LucasKovacs avatar Dec 31 '21 18:12 LucasKovacs

Why’d you run this instead of the regular installer?

I wanted to setup the database and config after running Docker XG Proyect, so I wrote this script to perform the automatic install. Main purpose was an attempt to test phpcompatinfo that somehow, was requiring to use a database, and I thought it was trying to use the game database, so I had to automate the setup to fill in the database data. Still it didn't work.

This script is just something I wrote to get it done, can be replaced with a full PHP CLI application to setup as well.

duhow avatar Jan 01 '22 12:01 duhow

That’s a problem with phpcompatinfo itself. I have reported the issue, an the author gave a possible solution. I will test it out. Not sure how you did it, but you can try to re enable the script

LucasKovacs avatar Jan 01 '22 13:01 LucasKovacs

For reference https://github.com/llaville/php-compatinfo/issues/315#issuecomment-1003427650

LucasKovacs avatar Jan 01 '22 13:01 LucasKovacs