Totally confused with Deployments of Projects to remote with DB

Hi all,

Just wondered if anyone can help me clarify a few things, I’ve been go round in circles for months and still cannot understand.

I’m trying to get my setup so that I can create a local project in wappler then deploy it to a remote AWS server. 've got a trial account on AWS with an EC2 instance running. I created the docker remote in wappler and can deploy however the issue is databases, and this is where I’m confused.

I thought that when you created a local Database instance i.e. MySQL on the local setup, a deployment to AWS via docker would create everything required to run or ‘deploy’ the project locally.

I’ve had no end of error messages, and at one stage managed to deploy, all best with no data.

Is it really this difficult to setup? I’m convinced that my misunderstanding is the issue and I’d really like help clearing it up as I cannot move forward and its frustrating.

Do I need to create a remote DB somewhere i.e. RDS in AWS, and use that as the shared DB between the local and remote, so that when deployed the remote has access to the database?

I’ve even tried setting up an RDS instance, but I’m not given any obvious details to enter into wappler setup, no I’m really confused.

Can anyone help, please :pray:

Thanks in Advance
M

Your database deployment is completely up to you.

You can choose to deploy the database with docker on the same server, useful for small projects. Easy to use.

If you need more control and reliability as well automatic backups then you can consider managed database on digital ocean or AWS.

In any case you you have a local development database and a final live database. On each deployment you are uploading your new files to your live server and updating the database scheme, if needed with the database manager.

Data in the database is never synchronized between development and live database. This is always kept separate.

3 Likes

Hi George,

Thank-you so much for taking the time to respond. I really do appreciate it and it certainly has cleared up some confusion.

I went over to wappler and created a new project

I then created a local docker as a deployment target

I’ve deployed to the local docker with no issues.

I then created a Remote Docker to AWS

And I deployed the same project as in local docker to remote docker…

But, this is the result on the remote deploy

This is what I keep getting, and its stopping me from progressing - is there anything obviously that I’m doing wrong?

Thanks
M

Well AWS servers are secured per default which means that as little public ports are opened as possible.

So probably the 9906 port is not open.

Try to open it as explained in similar case:

https://intellipaat.com/community/3700/how-to-open-a-web-server-port-on-ec2-instance

Another doc, maybe more clear: