Page MenuHomePhabricator

Create deployment of the content repository
Closed, ResolvedPublic5 Estimated Story Points


The deployment of the new content should be atomic, as it is done in the deployment playbook for the fundraising frontend.

Deploy the branches to the respective system (test to test, master to production).

Possible steps in a playbook:

  • Check out newest version in a local release subdirectory.
  • Create an archive, copy it to the server and extract it in a timestamped subdirectory in content
  • Change the content symlink in the app subdirectory to the new release subdirectory.
  • Clear Twig cache
  • Remove old releases, leaving the last 2 releases.

Create the playbook steps and an include file that can be run as part of the deployment playbook for the fundraising frontend and as a standalone playbook.

Event Timeline

gabriel-wmde closed this task as Declined.EditedApr 7 2017, 11:30 AM
gabriel-wmde moved this task from Backlog to Sprint ready on the WMDE-Fundraising-Tech board.
Pablo-WMDE renamed this task from Create an Ansible playbook for the deployment of the content repository to Create deployment of the content repository.Apr 12 2017, 1:09 PM
Pablo-WMDE reopened this task as Open.
Pablo-WMDE updated the task description. (Show Details)
Pablo-WMDE moved this task from Todo to Doing on the WMDE-Fundraising-Sprint-2 board.
This comment was removed by Pablo-WMDE.
Pablo-WMDE added a comment.EditedMay 9 2017, 3:17 PM

WIP here

Opted against the discussed ansistrano after realizing that

  • it will check out on the remote host
  • does not upload via tar ball even if checked out locally by hand

Create a (WIP) PR to illustrate interaction of a more sophisticated project w/ all hooks of wmde.atomic-deploy

Pablo-WMDE added a comment.EditedMay 16 2017, 8:21 AM

I think is now good to go for content. Review please.
Todos in indicate there are some changes required to get FundraisingFrontend on board later, but that should be a dedicated story (T165458).

Waiting for feedback from the mailing list!topic/ansible-project/GBK_uPjhvHw after review issues could not be resolved satisfyingly.

Pablo-WMDE changed the task status from Open to Stalled.May 17 2017, 7:29 AM

Configured FundraisingFrontend so that content using atomic deploy lives in current

Pablo-WMDE closed this task as Resolved.May 18 2017, 11:42 AM
Pablo-WMDE moved this task from Deploy to Done on the WMDE-Fundraising-Sprint-3 board.