Exemple #1
0
 def _build(self, main, api_url):
     self.root = main
     self.api_url = api_url
     config = dict(default_config(main))
     config.update(
         SESSION_COOKIE_NAME='%s-app' % self.name,
         HTML_TITLE=self.name
     )
     extend_config(config, self.config)
     config.update(
         APPLICATION_ID=self.id,
         SECRET_KEY=self.secret,
         APP_NAME=self.name,
         API_URL=api_url,
         APP_MULTI=self,
         MINIFIED_MEDIA=main.config['MINIFIED_MEDIA'],
         DEFAULT_CONTENT_TYPE="text/html"
     )
     # Fire the multi app event
     main.fire('on_multi_app', config)
     application = execute_from_config(
         main.config_module,
         argv=['serve'],
         config=config,
         cmdparams=dict(
             start=False,
             get_app=True
         )
     )
     return application
Exemple #2
0
 def _build(self, main, api_url):
     self.root = main
     self.api_url = api_url
     config = dict(default_config(main))
     config.update(SESSION_COOKIE_NAME='%s-app' % self.name,
                   HTML_TITLE=self.name)
     extend_config(config, self.config)
     config.update(APPLICATION_ID=self.id,
                   SECRET_KEY=self.secret,
                   APP_NAME=self.name,
                   API_URL=api_url,
                   APP_MULTI=self,
                   MINIFIED_MEDIA=main.config['MINIFIED_MEDIA'],
                   DEFAULT_CONTENT_TYPE="text/html")
     # Fire the multi app event
     main.fire('on_multi_app', config)
     application = execute_from_config(main.config_module,
                                       argv=['serve'],
                                       config=config,
                                       cmdparams=dict(start=False,
                                                      get_app=True))
     return application
Exemple #3
0
def main():
    from lux.core import execute_from_config

    execute_from_config('example.%s.config',
                        description='Lux powered example',
                        services=('webalone', 'webapi', 'website'))
Exemple #4
0
def main():
    from lux.core import execute_from_config

    execute_from_config('{{ project_name }}.config')
Exemple #5
0
#!/usr/bin/env python3

if __name__ == '__main__':
    from lux.core import execute_from_config
    execute_from_config('giottojs.config')
Exemple #6
0
#!/usr/bin/env python3

if __name__ == '__main__':
    from lux.core import execute_from_config
    execute_from_config('pulsarweb.config')