From bce03e4d9e8579194e89ca40bfadca20deddce9d 2021-01-18 22:33:44 From: Branko Majic Date: 2021-01-18 22:33:44 Subject: [PATCH] MAR-151: Fix The Bug Genie backup example in usage instructions: - Properly set-up the directory where files are uplaoded. - Update instructions to mention what needs to be done in order to upload some files in The Bug Genie. --- diff --git a/docs/usage.rst b/docs/usage.rst index a82cf456f7323ab30648cf7c1dc20906a0e51cde..745e55eb68123fc9c2ed31a8b4b2c77528159b86 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -1563,6 +1563,22 @@ Before we start, here is a couple of useful pointers regarding the - "composer.json" - "composer.lock" + - name: Create directory for storing uploaded files + file: + path: "/var/www/tbg.example.com/files" + state: directory + mode: 02770 + become: yes + become_user: admin-tbg_example_com + + - name: Create symlink towards directory where uploaded files are stored + file: + src: "/var/www/tbg.example.com/files" + dest: "/var/www/tbg.example.com/thebuggenie-{{ tbg_version }}/files" + state: link + become: yes + become_user: admin-tbg_example_com + - name: Create TBG cache directory file: path: "/var/www/tbg.example.com/thebuggenie-{{ tbg_version }}/cache" @@ -2401,9 +2417,14 @@ Genie*. So let's fix that one. workon mysite && ansible-playbook playbooks/site.yml -3. Now rerun the backup on server ``www.example.com`` (as root). If you haven't - uploaded any files, you may want to do so before testing to make sure - something is backed-up. +3. Now rerun the backup on server ``www.example.com`` (as root). If + you haven't uploaded any files, you may want to do so before + testing to make sure something is backed-up. This will require + enabling file uploads in `The Bug Genie settings + `_, creating a test + project, and then adding a new project release (via project's + release center). While creating a new project release, it is + possible to upload a release file. ::