Skip to content

Commit

Permalink
Use gspld-test-client
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik committed Aug 30, 2018
1 parent 948a783 commit bd7ba1f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 67 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
/tmp
/.env

*.pyc
*.pyc

src/layman/static/test-client
2 changes: 1 addition & 1 deletion src/layman/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@app.route('/')
def index():
return redirect('/static/index.html')
return redirect('/static/test-client/index.html')

@app.route('/rest/<username>/layers', methods=['POST'])
def post_layers(username):
Expand Down
65 changes: 0 additions & 65 deletions src/layman/static/index.html

This file was deleted.

8 changes: 8 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash

bash src/clear-python-cache.sh

if [ ! -d src/layman/static/test-client ]; then
cd src/layman
rm -rf static/test-client
curl -L https://github.com/jirik/gspld-test-client/releases/download/v0.1/release.tar.gz | tar xvz
cd ../../
fi

python3 src/prepare_layman.py && flask run --host=0.0.0.0 --port=8000

0 comments on commit bd7ba1f

Please sign in to comment.