Skip to content

Commit ec6ab2b

Browse files
committed
Tox target for runserver
I found having a target to pull up a local server is very handy. This is only for local development!
1 parent dcf5fc3 commit ec6ab2b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ deps =
4747

4848
commands =
4949
make -C {toxinidir}/docs/ html
50+
51+
[testenv:runserver]
52+
# Don't use this for production. Just a handy target
53+
# for local testing.
54+
whitelist_externals = sh
55+
commands =
56+
sh -c "if [[ ! -e ./server_sandbox/ ]]; then lnt create ./server_sandbox/; fi"
57+
58+
lnt runserver ./server_sandbox/

0 commit comments

Comments
 (0)