2012-08-23, 23:51
(2012-08-07, 19:39)mbw2001 Wrote: Latest commit now has support for setting datadir, pid and port through commandline parameters.
Thanks! This'll make a lot of users over on the unraid forums happy, they've been anxiously awaiting the htpc_manager plugin for their servers, with these settings it will be easier to implement. I'll get right on that,
EDIT: Not sure if you'll be able to help me, but when starting the app from the command line directly, it works fine. If I try to start the app passing the command from the plug-in, it starts, but Cherrypy throws an error:
Code:
Traceback (most recent call last):
File "/usr/local/htpcmanager/libs/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/usr/local/htpcmanager/libs/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/htpcmanager/libs/cherrypy/_cpdispatch.py", line 34, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/local/htpcmanager/htpc/index.py", line 7, in index
return template('dash.html')
File "/usr/local/htpcmanager/htpc/tools.py", line 7, in template
return lookup.get_template(template).render()
File "/usr/local/htpcmanager/libs/mako/lookup.py", line 243, in get_template
"Cant locate template for uri %r" % uri)
TopLevelLookupException: Cant locate template for uri 'dash.html'
EDIT 2: Ok, if the command is called from another directory it won't work, I had to cd into the install directory and then give the start command ( sudo -u nobody python /usr/local/htpcmanager/Htpc.py --daemon ) for it to work...is this a limitation of Mako or a possible bug?