Add tester page for localhost development

This commit is contained in:
Mikko Ahlroth 2018-06-28 12:35:38 +03:00
parent 768939f00f
commit 86c9ed27ab
4 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View file

@ -31,6 +31,7 @@ node_modules
# Compiled static files
/priv/static/*
!/priv/static/.gitkeep
!/priv/static/test.html
# Maxmind databases
/priv/maxmind

View file

@ -1,4 +1,7 @@
defmodule Tilastokeskus.Reception.Router do
@external_resource "priv/static/track.js"
@external_resource "priv/static/test.html"
use Ace.HTTP.Service, port: 1971, cleartext: true
use Raxx.Logger

View file

@ -27,4 +27,4 @@
"devDependencies": {
"uglify-es": "^3.3.9"
}
}
}

16
priv/static/test.html Normal file
View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Tilastokeskus tester page</title>
</head>
<body>
<script type="text/javascript">
window.tilastokeskus_url = '/track';
</script>
<script type="text/javascript" src="/track.js"></script>
</body>
</html>