User Setup ========== Ansible Installer (Recommended) ------------------------------- We recommend that you install `pulpcore` and `pulp-file` together using the `Ansible installer `_. The remaining steps are all performed by the installer and are not needed if you use it. Pip Install ----------- This document assumes that you have `installed pulpcore `_ into a the virtual environment ``pulpvenv``. Users should install from **either** PyPI or source. From PyPI ********* .. code-block:: bash sudo -u pulp -i source ~/pulpvenv/bin/activate pip install pulp-file From Source *********** .. code-block:: bash sudo -u pulp -i source ~/pulpvenv/bin/activate git clone https://github.com/pulp/pulp_file.git cd pulp_file pip install -e . Make and Run Migrations ----------------------- .. code-block:: bash export DJANGO_SETTINGS_MODULE=pulpcore.app.settings django-admin makemigrations file django-admin migrate file Run Services ------------ .. code-block:: bash django-admin runserver 24817 gunicorn pulpcore.content:server --bind 'localhost:24816' --worker-class 'aiohttp.GunicornWebWorker' -w 2 sudo systemctl restart pulpcore-resource-manager sudo systemctl restart pulpcore-worker@1 sudo systemctl restart pulpcore-worker@2