Commit 4c085538 authored by shadMod's avatar shadMod 💬

added sass (libsass) and rm sys and subprocess; black reformat

parent cbc2b98d
......@@ -15,25 +15,24 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import sys
import sass
import click
import subprocess
import uitwww
from uitwww import utils
@click.group()
def cli():
""" Ubuntu-it website's command line utility """
"""Ubuntu-it website's command line utility"""
pass
@cli.command("run")
@click.argument("data")
@click.option("-g", "--gunicorn-config", default=None, help="Path to a"
"gunicorn config file")
@click.option(
"-g", "--gunicorn-config", default=None, help="Path to a gunicorn config file"
)
@click.option("-p", "--port", default=8000, help="Bind that port")
@click.option("--public", help="Make available to the public", is_flag=True)
@click.option("-w", "--workers", help="Number of workers to start", default=3)
......@@ -63,7 +62,7 @@ def run(data, gunicorn_config, port, public, workers, debug):
# Else run the application with gunicorn
else:
options = {
"bind": host+":"+str(port),
"bind": host + ":" + str(port),
"workers": workers,
"accesslog": "-",
"errorlog": "-",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment