post-build hook

Wish to see a specific feature/change in future releases? Feel free to post it here, and if it gets enough "likes", we'd definitely include it in future releases!
Post Reply
grimblefritz
Veteran Member
Posts: 318
Joined: 2015-12-23 16:52

post-build hook

Post by grimblefritz » 2016-01-27 14:52

I find most of my apps require some degree of post-build fixup - modifying a template or the generated php and so forth. I do this with a script that I run before I push the app out to the server.

It occurs to me that if the builder had an option to run a post-build app and pass it the app name an output folder location:

Code: Select all

post_build  APP_NAME  OUTPUT_FOLDER
then it would be a simple matter to have these fixups run automatically after the build.

grimblefritz
Veteran Member
Posts: 318
Joined: 2015-12-23 16:52

Re: post-build hook

Post by grimblefritz » 2018-08-28 20:21

Bumping this to make sure it makes the feature backlog :)

I know there are at least two others who have wished for this (or a very similar) feature.

User avatar
a.gneady
Site Admin
Posts: 992
Joined: 2012-09-27 14:46
Contact:

Re: post-build hook

Post by a.gneady » 2018-08-29 13:12

Thanks for the suggestion. We're planning to including this and several other features for automating deployment. Here is a tip for now, if you are using the pro version of AppGini, you could automate your app generation by running AppGini from the command line as follows:

Code: Select all

path\to\AppGini.exe --generate path\to\project.axp
The above would generate the app code files for the given project file, using the settings you last specified when generating that project (by settings I mean the output folder and the file overwrite options). You could include the above command in a batch file that includes your other deployment steps after the above command.
:idea: Learn all the tips and tricks of customizing AppGini apps through our online course.

:arrow: Summary Reports plugin enables you to build powerful reports and charts inside your AppGini application through a few simple steps. See the big picture and discover trends in your data that empower you to take the right decisions confidently.

:arrow: Search Page Maker enables you to build user-friendly yet powerful search pages for your AppGini application by simply dragging and dropping the fields you want to include in search.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 114
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: post-build hook

Post by jsetzer » 2018-08-29 13:33

This is a great piece of information. I did not know that. This results in completely new perspectives! :idea:

Thanks for sharing, Ahmad!

Kind Regards,
Jan

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 114
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: post-build hook

Post by jsetzer » 2018-08-29 13:35

Note: Ahmad's post just came in while I was writing this feature suggestion here

A post-build hook would be great, I agree :idea:

Additionally I suggest a after_setup-hook for server side processing (PHP) after initial setup or after update (when field-fixing is complete).

There we could do changes like:
  • create views (for example a "members" view which can be used as lookup)
  • insert records (for example masterdata, lookup values etc.)
  • create groups and
  • define permissions in membership-system
  • create indexes on database tables
  • migrate data for example move field-values from one table to a new details-table
  • much more
This is not too important because I can do that stuff with prepared SQL scripts and phpMyAdmin or Adminer. It would help as soon as you have multiple server installations.

Thanks again, Ahmad for your work!

Kind Regards,
Jan

User avatar
a.gneady
Site Admin
Posts: 992
Joined: 2012-09-27 14:46
Contact:

Re: post-build hook

Post by a.gneady » 2018-09-26 12:25

A post_setup and a post_fix hook is a great way of automating deployment indeed, Jan. Duly noted and added to AppGini backlog. Thanks :)
:idea: Learn all the tips and tricks of customizing AppGini apps through our online course.

:arrow: Summary Reports plugin enables you to build powerful reports and charts inside your AppGini application through a few simple steps. See the big picture and discover trends in your data that empower you to take the right decisions confidently.

:arrow: Search Page Maker enables you to build user-friendly yet powerful search pages for your AppGini application by simply dragging and dropping the fields you want to include in search.

Post Reply