Page 1 of 1

Recreate your own adjustments fast after AG file creation

Posted: 2019-07-04 04:50
by onoehring
Hi,

I have made some adjustments to the generated AG application: Change the icon(s), logo etc. to my needs.
My problem was, that each time I regenerated the application, I needed to put all "new" files in place again.
My solution is quite simple I believe.

I created a subfolder special_from_root in my generated application folder, so it looks like this (left out the rest of the files as this is just for demo purposes).

Code: Select all

admin\
hooks\
images\
languages\
resources\
special_from_root\
templates\
ajax_admin_tools.php
ajax_check_login.php
ajax_check_unique.php
ajax_combo.php
ajax_combo.php_
ajax_combo.bak.php
auditLog_functions.php
blank.gif
checkMemberID.php
...
The new folder special_from_root holds all files and folders and files in folders that match the application root, but hold indeed my own files. Example:

Code: Select all

\special_from_root\resources\images\appgini-icon.png
\special_from_root\logo.png
... 
is not the original icon anymore, but I replaced the file with an icon for my application.

When I regenerate my application of course AG creates the

Code: Select all

\resources\images\appgini-icon.png
again and replaces my own icon.

So, after generating the application from AG, I switch to Windows Explorer and switch to

Code: Select all

\special_from_root
Press CTRL+A (mark everything), press CTRL+C (copy everything)
move back to the root \
and press CTRL+V (paste). Now Windows Explorer asks to overwrite exiting files. Click YES and you are done.

When you now upload your generated application it will have your own appgini-icon.png icon an all other things you have placed at that location.

Maybe this speeds up some cleanup after generating files.
Olaf

Re: Recreate your own adjustments fast after AG file creation

Posted: 2019-07-04 05:52
by jsetzer
Hi Olaf,

thanks for the Tipp! Certain files can also be replaced directly in your AppGini application directory. In my case this is

Code: Select all

C:\Program Files (x86)\AppGini\
On generation AppGini will take and upload those files.

For example you can replace logo.png which appears while installing your web-app on a new server machine. This will not work for the code-files you have mentioned above.

Attention
On installing an AppGini update, those files will be overwritten by the setup. So please backup your customizations before updating AppGini.

Regards,
Jan