liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.28k stars 925 forks source link

My Application not load by gateone #680

Closed viciousstar closed 7 years ago

viciousstar commented 7 years ago

I use the official example application, and I set settings as doc:

image image

But the example Application not loaded, and the python file not be compiled to .pyc or .pyo, what is wrong?

image you will see the time of app_example.py is older than .pyc and .pyo.

When I access https://myhost/example, not found will be show.

image

viciousstar commented 7 years ago

I fix myself:

  1. mv settings/50applications.conf.example settings/50applications.conf you should enable you app in the file

  2. modify you_apppath/__init_\.py insert like this from .app_example import init, apps, web_handlers, so gateone can load your app

  3. modify urlHandler, in example app it should like below:

    class ExampleHandler(BaseHandler):
    def get(self):

    to

    class ExampleHandler(BaseHandler):
    def get(self, url):
  4. at app_example.py line 462, modify from gateone.core.utils import settings_template to from gateone.core.configuration import settings_template

I do not know why there is so many bugs, may be this is beacuse python version or tornado version? I use python2.7.6 and tornado4.5.2