Open BoPeng opened 5 years ago
Another option, perhaps safer, is to execute git update
in the start script of the container. Then the only corner scenario is two VMs editing the same doc.
But if the PR is not accepted, users will still end up on the original version of tutorials where their previous edit are lost. I'm wondering if there is some optional "login" mechanism where users can choose to browse and edit as "guest" without logging in (current behavior) or log in to edit our documentation. For logged in users we do not destroy their session until after, say, 7 days inactivity.
If we do create this mechanism I think it would be worth to streamline and improve the process and package as a platform tool (also incorporating something like jnbinder
to export research websites). I can see it be popular in many scenarios, eg the context of teaching graduate courses while developing them, and in the context of research where small scale collaborations are made easy.
But if the PR is not accepted, users will still end up on the original version of tutorials where their previous edit are lost
No, at least I think no.
git pull
before starting the VM, so the user will see the merged PR. We do need to merge the PRs quickly though.
@gaow Right now, after a tutorial is updated
It is therefore necessary to refresh our VM regularly using a cron job. The script is already available on the server but we should remove the killing existing server part and only update the container.