How to Hack The Target Database For My Hosting Setup

I’m hosting my test and production databases with AWS Elastic Beanstalk. Because it is a load-balanced system, they do not support uploading of your app via ftp/git, they only support it via a zip file.

I want to be able to upload one zip file and then apply it to both test and production… but that involves using some automatic grep commands on installation which will hack the Wappler created files to change the target… so I’m trying to work out which files I need to change.

I can see I need to change:

.wappler/project.json
    "activeTarget": "XYZ",

and it looks like I also need to change:

dmxConnect/modules/connections/connection.php
    "mysql:host=xyz;...."

Do I also need to change this one?

.wappler/targets/TARGET_NAME/dmxConnect/modules/connections/connection.php

Or any other file?

I understand that these things could change and I’m not supposed to be doing this stuff!

Community Page
Last updated: