Can I pull from AWS? Should I be worried about this?

Good evening, everyone,

We just started to figure out part of the interface between Docker/Github. However, we have been running an AWS server for several months with multiple changes to layout.

Is there a way to pull our current AWS instance code into Github for modifying prior to modifying/containerizing/pushing modified code to our AWS server?

hi @emiller , here are some tips @brady.miller shared after running into a situation like this:

Steps:

  1. Make a copy of the repo with customizations and in that copy delete the .git directory

  2. In a standard repo, git checkout to where the code diverged

  3. Then use rsync to copy all the stuff from the code with customizations (the one without the .git folder) into the standard repo

  4. At this point, then do git add . (to ensure new files added), and then git commit -am "new code", and then voila

if you don’t have a repo, but just have the modified codebase, then can skip the remove .git directory part

Hey @stephenwaite,
Thanks for the response! We have not made any code changes at this point. Mainly just changes from layout administrations/forms tab.

Will these be wiped out if we were to do anything from a push? I apologize for the elementary question. We are still learning the AWS/Git/Docker interface.

You just need the database and the documents and don’t have to worry about the code then :slight_smile:

1 Like

Thank you so much! I think we can try to figure it out from there then.

You can follow the upgrade guide whenever you want to move to a new server.

Belatedly, are you using your own AWS server with your own OpenEMR installation, or are you using one of the AWS Marketplace options like Express or Standard?

The advice you were given works either way, but I can answer questions if it’s the latter.

1 Like