New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GSoC 2018 : Setup Improvements #1135
Conversation
For testing , go to this url http://localhost/LibreEHR/modules/setup/ at the end we shall point our index.php to that location |
@aethelwulffe can i know the reasons for multiple sites installation cant get that clearly |
talking about sites/default , sites/default2 etc |
There are lots of use cases like testing, training, demo and other things, but let's use the most obvious one, which is a vendor that is hosting EHR installations for multiple clinics:
While all the rest of the code is common, and can be considered read-only, there are things that are writable. First is each site's database. That is handled by the config file in each site directory. Also in each directory are subdirs containing uploaded documents, generated files for billing and the like, and any templates that are customized. This means that the administrator can update the code (and the /default site directory) without ever touching the actual configured site of each clinic. I will soon get a secure version of the site administration screen (a PR is started) back into the project that will give a GUI for managing sites, currently to run upgrades via GUI, you must go to the site URL, then replace the location to point to sql_upgrade.php to run the upgrade script for that site's database. Setup for a new site can be done by copying a base default database, and copying the default site directory (changing the sql config), OR by just adding a new site via the setup. |
This now has 70 commits. :) Did you push everything back to this PR? Wassa-goin-on? 👀 |
@aethelwulffe having a hard time making a cleaner branch i still end up with naveens commits. Help would be appreciated |
As of now i just deleted his updater folder and pushed it back to this branch let me show you what i get when i do a git status |
Make copy of your code in a directory. Rebase your master to this repo. |
Don't have a fear of Commitment! 😝 |
when you say make a copy of your code what do you mean please the entire codebase or my local changes made |
I made a new branch but when it came up it still had naveens commits reason why i couldn't make a PR |
Checkout this branch. The changes/untracked files I am seeing above seem to originate with PHP storm (".idea") and one of Terry's recent commits. |
okay will ping you |
-And don't worry. If you can't figure this out, we can still get this branch to work for us. |
GIT can bee frustrating as heck sometimes. |
ping me how? |
Kindna found a cool tool @aethelwulffe making use of this to get things clean |
Try the github Desktop tool. |
@aethelwulffe why is it that when i reclone my repo it tells me 14files modifies 192 added what does it mean |
Look at this: |
oooof thanks now i get branch is even with LibreHealthIO:master. |
…mann/LibreEHR into setupImprovement" This reverts commit b9e8a6a.
@tmccormi , @pri2si17-1997 here my structure more commits coming soon