Commit 4c085538 authored by shadMod's avatar shadMod 💬

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

parent cbc2b98d
...@@ -15,25 +15,24 @@ ...@@ -15,25 +15,24 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os import os
import sys
import sass
import click import click
import subprocess
import uitwww import uitwww
from uitwww import utils from uitwww import utils
@click.group() @click.group()
def cli(): def cli():
""" Ubuntu-it website's command line utility """ """Ubuntu-it website's command line utility"""
pass pass
@cli.command("run") @cli.command("run")
@click.argument("data") @click.argument("data")
@click.option("-g", "--gunicorn-config", default=None, help="Path to a" @click.option(
"gunicorn config file") "-g", "--gunicorn-config", default=None, help="Path to a gunicorn config file"
)
@click.option("-p", "--port", default=8000, help="Bind that port") @click.option("-p", "--port", default=8000, help="Bind that port")
@click.option("--public", help="Make available to the public", is_flag=True) @click.option("--public", help="Make available to the public", is_flag=True)
@click.option("-w", "--workers", help="Number of workers to start", default=3) @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): ...@@ -63,7 +62,7 @@ def run(data, gunicorn_config, port, public, workers, debug):
# Else run the application with gunicorn # Else run the application with gunicorn
else: else:
options = { options = {
"bind": host+":"+str(port), "bind": host + ":" + str(port),
"workers": workers, "workers": workers,
"accesslog": "-", "accesslog": "-",
"errorlog": "-", "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