Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
4c085538
Commit
4c085538
authored
Oct 06, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added sass (libsass) and rm sys and subprocess; black reformat
parent
cbc2b98d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
uitwww/main.py
uitwww/main.py
+6
-7
No files found.
uitwww/main.py
View file @
4c085538
...
...
@@ -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"
:
"-"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment