From b791ae973c816f2262fb7c6efa9444c75637150d Mon Sep 17 00:00:00 2001 From: Jim Campbell Date: Tue, 26 May 2015 00:40:24 -0500 Subject: [PATCH] docs: Added handling of user_dev permissions The user_dev directory gets created when users get established and they start uploading media. However, the permissions aren't correct on the directory as it gets created. As a workaround, we create the directory at this stage, and then set the proper permissions. See this mailing list post for more information: http://lists.mediagoblin.org/pipermail/devel/2015-May/001201.html --- docs/source/siteadmin/deploying.rst | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/source/siteadmin/deploying.rst b/docs/source/siteadmin/deploying.rst index 13429fc4..673efb30 100644 --- a/docs/source/siteadmin/deploying.rst +++ b/docs/source/siteadmin/deploying.rst @@ -246,6 +246,16 @@ Set up the hacking environment:: $ ./bootstrap.sh && ./configure && make +Create and set the proper permissions on the ``user_dev`` directory. +This directory will be used to store uploaded media files:: + + $ mkdir user_dev && chmod 750 user_dev + +Assuming you are going to deploy with FastCGI, you should also install +flup:: + + $ ./bin/easy_install flup + The above provides an in-package install of ``virtualenv``. While this is counter to the conventional ``virtualenv`` configuration, it is more reliable and considerably easier to configure and illustrate. If @@ -270,12 +280,7 @@ your preferred method. but note that no ``./bin/python`` will be set up for you via this method, since no virtualenv is set up for you!) -Assuming you are going to deploy with FastCGI, you should also install -flup:: - - $ ./bin/easy_install flup - -This concludes the initial configuration of the development +This concludes the initial configuration of the MediaGoblin environment. In the future, when you update your codebase, you should also run::