Page 1 of 1

post-build hook

Posted: 2016-01-27 14:52
by grimblefritz
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.

Re: post-build hook

Posted: 2018-08-28 20:21
by grimblefritz
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.

Re: post-build hook

Posted: 2018-08-29 13:12
by a.gneady
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.

Re: post-build hook

Posted: 2018-08-29 13:33
by jsetzer
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

Re: post-build hook

Posted: 2018-08-29 13:35
by jsetzer
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

Re: post-build hook

Posted: 2018-09-26 12:25
by a.gneady
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 :)