Ejemplo n.º 1
0
 def create_app(self):
     # Use the testing configuration
     self.config = TestingConfig(self.flask_conf)
     alcommand.upgrade(janitoo_config(self.config.SQLALCHEMY_DATABASE_URI), 'heads')
     app = create_app(self.config)
     app.config['LIVESERVER_PORT'] = 8943
     return app
Ejemplo n.º 2
0
    along with Janitoo. If not, see <http://www.gnu.org/licenses/>.

"""
__author__ = 'Sébastien GALLET aka bibi21000'
__email__ = '*****@*****.**'
__copyright__ = "Copyright © 2013-2014-2015-2016 Sébastien GALLET aka bibi21000"
#~ try:
    #~ from gevent import monkey
    #~ monkey.patch_all()
#~ except ImportError:
    #~ pass
from janitoo_manager.app import create_app
from janitoo_manager.configs.production import ProductionConfig
from janitoo_manager.extensions import socketio

application = create_app(config=ProductionConfig('/opt/janitoo/etc/janitoo_manager.conf'))

#~ import jinja2
#~ from janitoo_web.app import create_app, run_app
#~ from janitoo_admin.app import app as application, socketio
#~ from janitoo.runner import jnt_parse_args

#args = jnt_parse_args()
#options = vars(args)
#~ options = {}
#~ options["conf_file"] = "/var/www/janitoo_admin.conf"
#~ options["home_dir"] = "/var/www/"
#~ application, socketio = create_app(config_object='janitoo_web.config.RunConfig', options=options)
    #app.run(debug=True)
    #socketio.run(app)
    #print app