Skip to content
Permalink
Browse files

Serve index.html of app with uWSGI

  • Loading branch information
dnstanciu committed Jan 22, 2019
1 parent 7315595 commit b3eb47eb3c3e20e640928bdf78966368ffa395fe
Showing with 24 additions and 0 deletions.
  1. +19 −0 django/static_files/index.html
  2. +5 −0 django/uwsgi/uwsgi.ini
@@ -0,0 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My Todo App</title>
<base href="/">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://static.example.com/static_angular/styles.css">
</head>
<body>
<app-root></app-root>
<script type="text/javascript" src="https://static.example.com/static_angular/runtime.js"></script>
<script type="text/javascript" src="https://static.example.com/static_angular/polyfills.js"></script>
<script type="text/javascript" src="https://static.example.com/static_angular/main.js"></script>
</body>
</html>
@@ -4,3 +4,8 @@ uid = www-data
gid = www-data

module = todoproj.wsgi

check-static = /code/static_files
static-index = index.html
route-if = startswith:${REQUEST_URI};/api continue:
route-if-not = exists:/code/static_files${PATH_INFO} static:/code/static_files/index.html

0 comments on commit b3eb47e

Please sign in to comment.
You can’t perform that action at this time.