forked from Botanical/BotanJS
Deprecating old approach
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
#!env/bin/python
|
||||
|
||||
import os
|
||||
from botanjs.config import Config as config, DEBUG
|
||||
from subprocess import Popen
|
||||
from botanjs.service.webapi import WebAPI
|
||||
|
||||
SiteRoot = os.path.abspath( "." )
|
||||
|
||||
# Setting the SiteRoot for config
|
||||
config["Paths"]["SiteRoot"] = SiteRoot
|
||||
|
||||
service = WebAPI(
|
||||
jsCache = config["Paths"]["Cache"]
|
||||
, jsRoot = config["BotanJS"]["SrcDir"]
|
||||
, brokerURL = config["BotanJS"]["CeleryBroker"]
|
||||
)
|
||||
|
||||
application = service.app
|
||||
|
||||
if __name__ == "__main__":
|
||||
application.config["DEBUG"] = DEBUG
|
||||
application.run( host = config["Service"]["BindAddress"], port = config["Service"]["Port"] )
|
||||
Reference in New Issue
Block a user