Self hosted FLOSS fitness/workout, nutrition and weight tracker
Small corrections to production installations
Roland Geider5b92ef3d9e95
diff --git a/docs/production.rst b/docs/production.rstindex a8cfeae80..3725cc5ad 100644--- a/docs/production.rst+++ b/docs/production.rst@@ -49,9 +49,9 @@ Configure apache to serve the application::Activate the settings and disable apache's default::- RUN a2dissite 000-default.conf- RUN a2ensite wger- service apache2 reload+ sudo a2dissite 000-default.conf+ sudo a2ensite wger+ sudo service apache2 reloadDatabase---------@@ -61,12 +61,15 @@ postgreSQLInstall the postgres server and create a database and a user::- sudo apt-get install postgresql+ sudo apt-get install postgresql postgresql-server-dev-9.3 # or appropriate versionsu - postgrescreatedb wgerpsql wger -c "CREATE USER wger WITH PASSWORD 'wger'";psql wger -c "GRANT ALL PRIVILEGES ON DATABASE wger to wger";+You might want or need to edit your ``pg_hba.conf`` file to allow local socket+connections or similar.+sqlite~~~~~~@@ -111,14 +114,15 @@ correct values for the database (use ``django.db.backends.postgresql_psycopg2``for the engine). Also set ``MEDIA_ROOT`` to ``/home/wger/media`` and``STATIC_ROOT`` to ``/home/wger/static``.-Collect all static resources::+Run the installation script, this will download some CSS and JS libraries and+load all initial data::- python manage.py collectstatic+ invoke bootstrap_wger --settings-path /path/to/settings.py --no-start-server-Run the installation script, this will load all initial data::+Collect all static resources::- invoke bootstrap_wger --settings-path /path/to/settings.py --no-start-server+ python manage.py collectstaticThe bootstrap command will also create a default administrator user (you probably