m-lab / piecewise

A customizable online survey tool for running NDT tests.
Apache License 2.0
12 stars 9 forks source link

change the way files get copied so piecewise components can be updated separately #130

Closed critzo closed 7 years ago

critzo commented 7 years ago

As it was originally designed, a copy of the piecewise code is cloned onto the remote server and then links to specific files/folders are created to that remote repository. This was advantageous for our initial deployments where the original frontend was a separate git submodule. You could log into the server and run git pull from the piecewise_web folder.

Now that we have a more flexible approach to templating files using Ansible, having links instead of actual files is problematic for updating specific parts of the application, for example to correct a typo or update the CSS. Attempting to do that now results in errors because changes to the remote git repository are detected and the update playbooks fail.

Change the way piecewise files get deployed so that individual components of the app can be updated independently via separate Ansible playbooks. For example update_frontend.yml could update just CSS, included JavaScript and HTML pages. update_backend.yml could update database components.

critzo commented 7 years ago

@georgiamoon @nkinkade Tagging you both here on this issue for visibility and discussion.

georgiamoon commented 7 years ago

that makes sense to me. I'd tag @dwins into this too in case he has thoughts/opinions.

critzo commented 7 years ago

Resolved in https://github.com/opentechinstitute/piecewise/commit/af12fd207600a721f46347529f2d38ddde08f9e1