summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Zamotaev <nzamotaev@luxoft.com>2020-04-24 17:22:12 +0300
committerNikolay Zamotaev <nzamotaev@luxoft.com>2020-04-28 14:37:42 +0000
commit6765a8536bdcce039991ac19cc800e0495f53c92 (patch)
tree24a0732afbf054f618efa8958f24cdccecefbf30
parent25fab1ce84f001044cc92b9abe26e1a627b528ce (diff)
Documentation structure update
Documentation updated for easier readability Change-Id: Iddaa22b974b60351e0b4237be5b3dee4cf1d1da7 Fixes: AUTOSUITE-1577 Reviewed-by: Evgeniy Zabotkin <ezabotkin@luxoft.com> Reviewed-by: Svetlana Abramenkova <sabramenkova@luxoft.com>
-rw-r--r--doc/qtautodeploymentserver-project.qdocconf1
-rw-r--r--doc/src/deployment-server-http-server-setup.qdoc6
-rw-r--r--doc/src/deployment-server-installation.qdoc136
-rw-r--r--doc/src/deployment-server-package-upload.qdoc6
-rw-r--r--doc/src/deployment-server-reference.qdoc6
-rw-r--r--doc/src/deployment-server.qdoc106
6 files changed, 157 insertions, 104 deletions
diff --git a/doc/qtautodeploymentserver-project.qdocconf b/doc/qtautodeploymentserver-project.qdocconf
index 8625f13..258ef99 100644
--- a/doc/qtautodeploymentserver-project.qdocconf
+++ b/doc/qtautodeploymentserver-project.qdocconf
@@ -24,3 +24,4 @@ depends = qtautomotivesuite
buildversion = "Qt Automotive Suite Deployment Server $QT_VERSION"
navigation.homepage = "Qt Automotive Suite"
+navigation.landingpage = "Qt Automotive Suite Deployment Server"
diff --git a/doc/src/deployment-server-http-server-setup.qdoc b/doc/src/deployment-server-http-server-setup.qdoc
index a293931..6921362 100644
--- a/doc/src/deployment-server-http-server-setup.qdoc
+++ b/doc/src/deployment-server-http-server-setup.qdoc
@@ -28,8 +28,10 @@
/*!
\page qtauto-deployment-server-http-server-setup.html
- \previouspage Qt Automotive Suite Deployment Server
- \contentspage Qt Automotive Suite
+ \previouspage Qt Automotive Suite Deployment Server API Reference
+ \nextpage Upload Packages to the Deployment Server
+ \contentspage {Qt Automotive Suite Deployment Server}
+ \startpage Qt Automotive Suite Deployment Server
\title Set up a Production server with Apache, Lighttpd or Nginx
diff --git a/doc/src/deployment-server-installation.qdoc b/doc/src/deployment-server-installation.qdoc
new file mode 100644
index 0000000..4cb0517
--- /dev/null
+++ b/doc/src/deployment-server-installation.qdoc
@@ -0,0 +1,136 @@
+/****************************************************************************
+**
+** Copyright (C) 2019 Luxoft Sweden AB
+** Copyright (C) 2018 Pelagicore AG
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the documentation of the Qt Auto Deployment Server.
+**
+** $QT_BEGIN_LICENSE:FDL-QTAS$
+** Commercial License Usage
+** Licensees holding valid commercial Qt Automotive Suite licenses may use
+** this file in accordance with the commercial license agreement provided
+** with the Software or, alternatively, in accordance with the terms
+** contained in a written agreement between you and The Qt Company. For
+** licensing terms and conditions see https://www.qt.io/terms-conditions.
+** For further information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU Free Documentation License Usage
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file. Please review the following information to ensure
+** the GNU Free Documentation License version 1.3 requirements
+** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \page qtauto-deployment-server-installation.html
+ \contentspage {Qt Automotive Suite Deployment Server}
+ \previouspage Qt Automotive Suite Deployment Server
+ \nextpage Qt Automotive Suite Deployment Server API Reference
+ \startpage Qt Automotive Suite Deployment Server
+
+ \title Qt Automotive Suite Deployment Server Installation
+
+ \section1 Set up the Server in a Virtual Environment
+
+ Before you install the dependencies in the Python virtual environment, you must install the
+ \c{libffi-dev}, \c{python-pkg-resources}, \c{python-dev} and \c{libssl-dev} packages. Next,
+ prepare the virtual environment:
+
+ \code
+ virtualenv -p python2.7 ./venv
+ ./venv/bin/pip install -r requirements.txt
+ \endcode
+
+ Make sure to adapt the \c{APPSTORE_*} settings in \c{appstore/settings.py} to your environment,
+ before you run the server.
+
+ One setting group to note is category icon resizing and decolorization settings. They are:
+ \c{ICON_SIZE_X}, \c{ICON_SIZE_Y} and \c{ICON_DECOLOR}. \c{ICON_DECOLOR} is False by default, and it
+ regulates stripping the category icon of color and alpha channel and the subsequent application
+ of the same image as an alpha channel instead.
+
+ \c{ICON_SIZE_X} and \c{ICON_SIZE_Y} are the maximum icon sizes, icons are scaled in such a way,
+ as not to exceed this size, while keeping the aspect ratio of the icon. Default values are 50x50,
+ so you should be aware that any uploaded icon will be limited to this size, unless the server is
+ reconfigured.
+
+ Since package downloads are done via temporary files, you need to setup a cron-job to remove
+ these temporary files periodically. The cron-job should be triggered every
+ \c{settings.APPSTORE_DOWNLOAD_EXPIRY/2} minutes; it needs to run:
+
+ \code
+ ./manage.py expire-downloads
+ \endcode
+
+ \section1 Activate the Python Virtual Environment
+
+ Before you run \c manage.py, source the activation script on the console where you will be using it.
+
+ \code
+ . ./venv/bin/activate
+ \endcode
+
+ This activation is done once per session only:
+
+
+ \section1 Prepare Your Databases on the Server
+
+ Before you run the server, first, you must prepare the databases. Also, you need to create an administrative user.
+
+ \code
+ ./manage.py makemigrations
+ ./manage.py migrate
+ ./manage.py createsuperuser
+ \endcode
+
+ Make sure that the server has a user added for Neptune 3 UI's Downloads App. Currently the username and
+ password are hardcoded in \c apps/com.pelagicore.downloads/stores/ServerConfig.qml:78.
+
+
+ \section1 Start the Server
+
+ To start the server, run the following command in your terminal:
+
+ \code
+ ./manage.py runserver 0.0.0.0:8080
+ \endcode
+
+ This command starts the server on port 8080, and is reachable by anyone. You can modify the
+ listening address to another address that suits your use case.
+
+ \section1 Maintain the Server
+
+ \list
+ \li Clean up the downloads directory:
+ \code
+ ./manage.py expire-downloads
+ \endcode
+
+ This command removes all files from the downloads directory, that are older than
+ \c{settings.APPSTORE_DOWNLOAD_EXPIRY} minutes. Ideally, this command should be run via a cron-job.
+
+ \li Manually verify a package for upload:
+
+ \code
+ ./manage.py verify-upload-package <pkg.appkg>
+ \endcode
+
+ This command verifies if \c{<pkg.appkg>} is a valid package that can be uploaded to the Downloads
+ app.
+
+ \li Manually add a store signature to a package:
+
+ \code
+ ./manage.py store-sign-package <in.appkg> <out.appkg> [device id]
+ \endcode
+
+ This command first verifies the \c{<in.appkg>}. If this verification succeeds, \c{<in.appkg>}
+ is copied over to \c{<out.appkg>} and a store signature is added. The optional \c{[device id]}
+ parameter locks the generated package to the device with this ID.
+ \endlist
+*/
diff --git a/doc/src/deployment-server-package-upload.qdoc b/doc/src/deployment-server-package-upload.qdoc
index b7176c8..dc5b7b4 100644
--- a/doc/src/deployment-server-package-upload.qdoc
+++ b/doc/src/deployment-server-package-upload.qdoc
@@ -28,8 +28,10 @@
/*!
\page qtauto-deployment-server-package-upload.html
- \previouspage Qt Automotive Suite Deployment Server
- \contentspage {Qt Automotive Suite}
+ \previouspage Set up a Production server with Apache, Lighttpd or Nginx
+ \nextpage Qt Automotive Suite Deployment Server
+ \contentspage {Qt Automotive Suite Deployment Server}
+ \startpage Qt Automotive Suite Deployment Server
\title Upload Packages to the Deployment Server
diff --git a/doc/src/deployment-server-reference.qdoc b/doc/src/deployment-server-reference.qdoc
index 1ade88f..88902d4 100644
--- a/doc/src/deployment-server-reference.qdoc
+++ b/doc/src/deployment-server-reference.qdoc
@@ -28,8 +28,10 @@
/*!
\page qtauto-deployment-server-reference.html
- \previouspage Qt Automotive Suite Deployment Server
- \contentspage Qt Automotive Suite
+ \previouspage Qt Automotive Suite Deployment Server Installation
+ \nextpage Set up a Production server with Apache, Lighttpd or Nginx
+ \contentspage {Qt Automotive Suite Deployment Server}
+ \startpage Qt Automotive Suite Deployment Server
\title Qt Automotive Suite Deployment Server API Reference
diff --git a/doc/src/deployment-server.qdoc b/doc/src/deployment-server.qdoc
index f1d4167..c3e7961 100644
--- a/doc/src/deployment-server.qdoc
+++ b/doc/src/deployment-server.qdoc
@@ -29,7 +29,8 @@
/*!
\page qtauto-deployment-server-index.html
\contentspage {Qt Automotive Suite}
- \nextpage Qt Automotive Suite Deployment Server API Reference
+ \nextpage Qt Automotive Suite Deployment Server Installation
+ \startpage Qt Automotive Suite Deployment Server
\title Qt Automotive Suite Deployment Server
@@ -103,103 +104,12 @@
This command creates package and adds \c{platform} tag with \c{desktop} value to it.
For reference see the \l{Packager} section of \l{Qt Application Manager} documentation.
- \section1 Installation
-
- \section2 Set up the Server in a Virtual Environment
-
- Before you install the dependencies in the Python virtual environment, you must install the
- \c{libffi-dev} and \c{python-pkg-resources} packages. Next, prepare the virtual environment:
-
- \code
- virtualenv -p python2.7 ./venv
- ./venv/bin/pip install -r requirements.txt
- \endcode
-
- Make sure to adapt the \c{APPSTORE_*} settings in \c{appstore/settings.py} to your environment,
- before you run the server.
-
- One setting group to note is category icon resizing and decolorization settings. They are:
- \c{ICON_SIZE_X}, \c{ICON_SIZE_Y} and \c{ICON_DECOLOR}. \c{ICON_DECOLOR} is False by default, and it
- regulates stripping the category icon of color and alpha channel and the subsequent application
- of the same image as an alpha channel instead.
-
- \c{ICON_SIZE_X} and \c{ICON_SIZE_Y} are the maximum icon sizes, icons are scaled in such a way,
- as not to exceed this size, while keeping the aspect ratio of the icon. Default values are 50x50,
- so you should be aware that any uploaded icon will be limited to this size, unless the server is
- reconfigured.
-
- Since package downloads are done via temporary files, you need to setup a cron-job to remove
- these temporary files periodically. The cron-job should be triggered every
- \c{settings.APPSTORE_DOWNLOAD_EXPIRY/2} minutes; it needs to run:
-
- \code
- ./manage.py expire-downloads
- \endcode
-
- \section2 Activate the Python Virtual Environment
-
- Before you run \c manage.py, source the activation script on the console where you will be using it.
-
- \code
- . ./venv/bin/activate
- \endcode
-
- This activation is done once per session only:
-
-
- \section2 Prepare Your Databases on the Server
-
- Before you run the server, first, you must prepare the databases. Also, you need to create an administrative user.
-
- \code
- ./manage.py makemigrations
- ./manage.py migrate
- ./manage.py createsuperuser
- \endcode
-
- Make sure that the server has a user added for Neptune 3 UI's Downloads App. Currently the username and
- password are hardcoded in \c apps/com.pelagicore.downloads/stores/ServerConfig.qml:78.
-
-
- \section2 Start the Server
-
- To start the server, run the following command in your terminal:
-
- \code
- ./manage.py runserver 0.0.0.0:8080
- \endcode
-
- This command starts the server on port 8080, and is reachable by anyone. You can modify the
- listening address to another address that suits your use case.
-
- \section2 Maintain the Server
-
+ \section1 References and procedures
\list
- \li Clean up the downloads directory:
- \code
- ./manage.py expire-downloads
- \endcode
-
- This command removes all files from the downloads directory, that are older than
- \c{settings.APPSTORE_DOWNLOAD_EXPIRY} minutes. Ideally, this command should be run via a cron-job.
-
- \li Manually verify a package for upload:
-
- \code
- ./manage.py verify-upload-package <pkg.appkg>
- \endcode
-
- This command verifies if \c{<pkg.appkg>} is a valid package that can be uploaded to the Downloads
- app.
-
- \li Manually add a store signature to a package:
-
- \code
- ./manage.py store-sign-package <in.appkg> <out.appkg> [device id]
- \endcode
-
- This command first verifies the \c{<in.appkg>}. If this verification succeeds, \c{<in.appkg>}
- is copied over to \c{<out.appkg>} and a store signature is added. The optional \c{[device id]}
- parameter locks the generated package to the device with this ID.
+ \li \l{Qt Automotive Suite Deployment Server Installation}
+ \li \l{Qt Automotive Suite Deployment Server API Reference}
+ \li \l{Set up a Production server with Apache, Lighttpd or Nginx}
+ \li \l{Upload Packages to the Deployment Server}
\endlist
+
*/