PASTA system dashboard and utilities
The PASTA Dashboard is a Flask driven web application using Ngnix as its frontend web server. Some routes require administration rights to access, but most routes are publicly accessible.
- To install
uwsgi
with Conda:conda install -c conda-forge libiconv uwsgi
- To restart service:
sudo service dashboard restart
- Flask requires all static content to be in
<webapp>/static
(see Config.STATIC)
Thanks to Digital Oceans' community tutorials for tips on deploying Nginx with LetsEncrypt on Ubuntu 16.04 and integrating Flask and uwsgi with Nginx.
- Install Nginx - see above
- Install LetsEncrypt - see above
- Install git
- Create the main user - generally pasta
- Download and install miniconda
- Using the conda package manager, create three new Python virtual environments:
conda env create -n pastaplus_utilities python=3.7 --no-default-packages
conda env create -n soh python=3.7 --no-default-packages
conda env create -n dashboard python=3.7 --no-default-packages
- In the pasta home directory, clone the following git repositories:
git clone https://github.com/PASTAplus/pastaplus_utilities.git
git clone https://github.com/PASTAplus/soh.git
git clone https://github.com/PASTAplus/dashboard.git