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
AppGini Super Hero
AppGini Super Hero
Posts: 336
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
AppGini Super Hero
AppGini Super Hero
Posts: 336
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: 1281
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: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
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
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
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
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
a.gneady
Site Admin
Posts: 1281
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: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply