mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add command to run the development server
This commit is contained in:
parent
ef1e598341
commit
d8f9f95cb4
10
tasks.py
10
tasks.py
@ -242,3 +242,13 @@ def backup(c):
|
||||
|
||||
manage(c, 'dbbackup')
|
||||
manage(c, 'mediabackup')
|
||||
|
||||
@task(help={'address': 'Server address:port'})
|
||||
def server(c, address="127.0.0.1:8000"):
|
||||
"""
|
||||
Launch a (deveopment) server using Django's in-built webserver.
|
||||
|
||||
Note: This is *not* sufficient for a production installation.
|
||||
"""
|
||||
|
||||
manage(c, "runserver {address}".format(address=address))
|
||||
|
Loading…
Reference in New Issue
Block a user