Example #1
0
from __future__ import unicode_literals
from __future__ import absolute_import

from puppetboard.app import app
from puppetboard.default_settings import DEV_LISTEN_HOST, DEV_LISTEN_PORT

if __name__ == '__main__':
    app.debug=True
    app.run(DEV_LISTEN_HOST, DEV_LISTEN_PORT)
Example #2
0
from __future__ import unicode_literals
from __future__ import absolute_import

from puppetboard.app import app
from puppetboard.default_settings import DEV_LISTEN_HOST, DEV_LISTEN_PORT

if __name__ == '__main__':
    app.debug = True
    app.run(DEV_LISTEN_HOST, DEV_LISTEN_PORT)
Example #3
0
from __future__ import unicode_literals
from __future__ import absolute_import

from puppetboard.app import app

if __name__ == '__main__':
    app.debug=True
    app.run('127.0.0.1')
#!/usr/bin/env python3

from __future__ import unicode_literals
from __future__ import absolute_import
import os
import subprocess

# Set PUPPETBOARD_SETTINGS to your settings.py
from puppetboard.app import app

if __name__ == '__main__':
    # Start CoffeeScript to automatically compile our coffee source.
    # We must be careful to only start this in the parent process as
    # Werkzeug will create a secondary process when using the reloader.
    if os.environ.get('WERKZEUG_RUN_MAIN') is None:
        try:
            subprocess.Popen([
                app.config['DEV_COFFEE_LOCATION'], '-w', '-c',
                '-o', 'puppetboard/static/js',
                'puppetboard/static/coffeescript'
            ])
        except OSError:
            app.logger.error(
                'The coffee executable was not found, disabling automatic '
                'CoffeeScript compilation'
            )

    # Start the Flask development server
    app.debug = True
    app.run(app.config['DEV_LISTEN_HOST'], app.config['DEV_LISTEN_PORT'])
Example #5
0
from __future__ import unicode_literals
from __future__ import absolute_import
import os
import subprocess

# Set PUPPETBOARD_SETTINGS to your settings.py
from puppetboard.app import app

if __name__ == '__main__':
    # Start CoffeeScript to automatically compile our coffee source.
    # We must be careful to only start this in the parent process as
    # Werkzeug will create a secondary process when using the reloader.
    if os.environ.get('WERKZEUG_RUN_MAIN') is None:
        try:
            subprocess.Popen([
                app.config['DEV_COFFEE_LOCATION'], '-w', '-c',
                '-o', 'puppetboard/static/js',
                'puppetboard/static/coffeescript'
            ])
        except OSError:
            app.logger.error(
                'The coffee executable was not found, disabling automatic '
                'CoffeeScript compilation'
            )

    # Start the Flask development server
    app.debug = True
    app.run(app.config['DEV_LISTEN_HOST'], app.config['DEV_LISTEN_PORT'])