Add tester page for localhost development
This commit is contained in:
parent
768939f00f
commit
86c9ed27ab
4 changed files with 21 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -31,6 +31,7 @@ node_modules
|
|||
# Compiled static files
|
||||
/priv/static/*
|
||||
!/priv/static/.gitkeep
|
||||
!/priv/static/test.html
|
||||
|
||||
# Maxmind databases
|
||||
/priv/maxmind
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -27,4 +27,4 @@
|
|||
"devDependencies": {
|
||||
"uglify-es": "^3.3.9"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
16
priv/static/test.html
Normal file
16
priv/static/test.html
Normal 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>
|
Loading…
Reference in a new issue