Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (27 loc) · 773 Bytes

INSTALLING.md

File metadata and controls

37 lines (27 loc) · 773 Bytes

INSTALLING

Installing uWSGI Service

The following instructions target Ubuntu 18.04 LTS

  • Rename uwsgi.dist.ini to uwsgi.ini
  • Copy uwsgi.dist.service to /etc/systemd/system/<API Service Name>.service
  • Run:
    sudo systemctl start <API Service Name>
    sudo systemctl enable <API Service Name>
  • Verify service status
    sudo systemctl status <API Service Name>

Setting up NGINX to Serve Static Files

Instead of having uWSGI serve the static content, NGINX can be configured to serve the files directly by including the following directives in the site's configuration file.

	location /static/ {
		root <project_path>;
		autoindex off;
	}

	location = /favicon.ico {
		alias <project_path>/static/favicon.ico;
	}