-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use test3 for refinery page development and automate transfer to production #1371
Comments
If really really needed could be done by by a cron task running a rsync of the mysql refinery tables |
Methodology: bring everything from test to live. Then when in place, cron task to copy live back to Test 2 (no use for refinery on test 3). Authorisation for cron task in Scrum, to ensure no one has work on Test 2 that would be over-ridden. Perriodically re-run so that minor textual changes, which do not originate on test 2, are copied back. |
test2 has no requirement for help material. It is a test facility for developers working on significant new capabilities or major code changes. The only people using test2 are those involved the functions associated with the capability and are usually members of the FR senior management and senior coordinators. It uses separate databases that are not connected to the production servers and these are often dated and/or damaged. |
@PatReynolds What!! If you "bring everything from test to live", as things stand on REG, then a lot of time-consuming formatting/editing will be lost (permanently) on live. I'm hoping I don't understand what you mean. |
What on earth is Pat saying here? Is the last comment on the right story? ( i.e. the one attributed to Pat) |
I prefer to create new pages on test. It allows for the poor html of people like me to be checked before making live. This won't happen much now on FreeREG, but is happening a lot on FreeCEN2. But as @AlOneill says, there is much more on live which is not on a test server. So it is a matter of knowing what needs to be copied in which direction, rather than wholesale copying. My understanding (again, may be faulty @Captainkirkdawson is that Alison will need to test things such as changes to tables, rather than working on live. Maybe only on test2@? That the actual content is of use on a test isn't the issue, I think. |
Test 3 - staging is the 'build' for Refinery. Need to find a date/stage when there is nothing on staging that will be lost when Live over-writes staging. |
To review proposal that we choose a time to 'sync' everything so that Test3 reflects Live. |
Awaiting documentation before we decide on this. |
@DeniseColbert to make skeleton document. |
Document sent to @richpomfret and @PatReynolds |
Would it not have been better to paste a link so all could see and comment |
As it's a skeleton (i.e. empty) document, there's nothing to comment on just yet, will send around/ link to when there is. Also wary to post the link on github as it's public and I'm not 100% sure that the contents will be suitable. |
I don't think it's a good idea to cron it, since we might be mid-edit when the sync is scheduled, or we want a bunch of changes to be published one go. I'm looking at a console from which we can trigger the process on demand, most likely Rundeck. |
This is mostly assembled. What I need now is confirmation that it's OK for me to test it, by doing repeated transfers of database and assets from test3 to production. Documentation and instructions will follow. |
@richpomfret @benwbrum @AlOneill Please can someone confirm I am OK to do another test3 -> production transfer to test this? As before, this is a destructive action to anything that's only in production (sounds like that's understood and intended, but worth being explicit about). |
@lemon-ukgen @benwbrum @Captainkirkdawson I'm not seeing any of the Refinery images on test3: would appreciate confirmation that all is in order before transfer. Thanks. To clarify, Refinery Images listing is present but can't see the images there or on Refinery pages. |
I agree there are NO refinery images on test3 or test2. I have NO idea when or how they went AWOL |
The assets symlink on Production:
I can recreate it... but where did it go? |
I think I can shed some light on how it might have gone. |
I expect the symlink was created by me, motivated by needing to put the [uploaded] assets somewhere that gets synced between servers, and the sync process generally operates out of However, the enclosing directory We should add both creating the directory and sticking the symlink inside it to the I've done this by hand on |
The myopicvicar code base now runs as different applications. The public files are different between the applications hence there is an initializer that creates the required files in the public folder. I was unaware of the requirement for a public/system folder into which the refinery symlinks were placed hence it is not created. The initializer is easily modified to ensure that there is a public/system folder or it can be done by the update script. Since I am unfamiliar with the symlinks perhaps your solution is better. |
The requirement is just this config piece, as far as I can tell:
(Which itself has changed during the course of this issue...) So I'd suggest the initializer script should create Alternatively we can update the config to not use |
@lemon-ukgen initializer now creates public/system if not present. |
@lemon-ukgen can you proceed with this? Let me know if you need anything else. |
Current status:
That last job has a safety catch on it to just dry-run the operation. I'm ready to remove the safety, but have yet to do so. |
I have now tried this for real, and the transfer worked ok as far as I can tell. The touchstone To open this up to the group I'll need some usernames and I'll write some docs up for how to drive it. |
Synced pages and images fine on live: my mistake that Coords sub-menu is lacking two of the new page links on some info pages. However, the two letters for Incumbents are "Not found". Will investigate further … |
The two letters for Incumbents are also "Not found" on test3. Looks like I didn't check the links (doh!). Did anyone else check that they worked on test3? |
Links re-inserted on test3 and working as expected. (Issue with opening in OpenOffice will be noted on appropriate card.) Should I re-do links directly on live? Otherwise, they will not be working until next REG sync. |
I've redone the transfer to write some docs for the process, so I'm hoping these links are now on production too. |
Oh no! The "Please be aware that this is a test development website for FreeREG" banner is delivered by Refinery, so when we transfer to production this banner appears there too. For now I nulled it out in the database (I have no access to Refinery). We'll need to do something better... For the record I did:
|
@lemon-ukgen I can confirm that links to letters are now working on production. TY That banner message is done in Refinery so that it can be used, maybe in a hurry, without developer intervention. Can that individual page be excluded from a sync? |
That specific warning is no longer needed on test3 now that it is the test sites are behind a log in. Removed from test3 so no need to take special action. |
@richpomfret to test/look at process for deploying this each sprint (or when necessary). |
@lemon-ukgen can you post the link to the update process/instructions document? |
Now landed in the Give me a shout if it's unclear or not working. |
Used the process following the last release; worked as expected. @AlOneill and @DeniseColbert need to establish passwords if they have not already done so then this can be closed |
Priority (0 6 7 4) 17
The text was updated successfully, but these errors were encountered: