Wikimedia
WatchTranslations: Create a deploy script
Problem
When a maintainer wants to deploy WatchTranslations to production, the only way how to do that is to manually pull the sourcecode and then restart the web service.
Proposed solution
Write a bash script that would:
- Pull the sourcecode
- Run database migrations
- Restart webservice (you can read how to do that at Wikitech)
- Have support for several branches
- For testing version of this tool, it can be useful to use another branch than master. The script should read
~/branch
and use branch specified there. If the file doesn't exist, the script should usemaster
.
- For testing version of this tool, it can be useful to use another branch than master. The script should read
Student is expected to upload a patch against labs/tools/watch-translations
repository at Wikimedia Gerrit. Student should claim Phabricator task while claiming task at the GCI site.
Materials
Task tags
Students who completed this task
Netx