Skip to content

Commit

Permalink
[update]
Browse files Browse the repository at this point in the history
  • Loading branch information
boke0 committed Mar 6, 2021
1 parent 78ee3ce commit 34fb08a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions docker/conf/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ chdir=/project
socket=127.0.0.1:8080
master=true
vacuum=true
gevent=100
pidfile=/tmp/uwsgi.pid
module=project:application
4 changes: 4 additions & 0 deletions mitama/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

import argparse
import mitama.commands
import gevent.monkey
#import sqlalchemy_gevent

gevent.monkey.patch_all()

parser = argparse.ArgumentParser(description="Mitama command utilities")
subparser = parser.add_subparsers()
Expand Down
1 change: 0 additions & 1 deletion mitama/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import magic
import markdown
from jinja2 import Markup, Environment, ChoiceLoader, FileSystemLoader
from yarl import URL
import uuid

from mitama.noimage import load_noimage_app
Expand Down
3 changes: 3 additions & 0 deletions mitama/project/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ def auth(project, args):
except Exception:
print("Authentication failed")
sys.exit(1)

def uninstall(project, args):
project.uninstall(args.app)
5 changes: 3 additions & 2 deletions mitama/project/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ def arg_parser(self):
cmd_auth.add_argument("-u", "--user", help="user's screen name", type=str)
cmd_auth.add_argument("-p", "--password", help="password", type=str, nargs="?", default="", const="")
cmd_auth.set_defaults(handler=commands.auth)
#cmd_cleandb = subparser.add_parser("cleandb", help="Clean up unused App's database")
#cmd_cleandb.add_argument("prefix", help="")
cmd_uninstall = subparser.add_parser("uninstall", help="Uninstall app from project clearly")
cmd_uninstall.add_argument("app", help="app's screen name")
cmd_uninstall.set_defaults(handler=commands.uninstall)
return self._arg_parser

def command(self):
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Jinja2 = "^2.11.3"
SQLAlchemy = "^1.3.23"
PyJWT = "^2.0.1"
bcrypt = "^3.2.0"
yarl = "^1.6.3"
pysaml2 = "^6.5.1"
tzlocal = "^2.1"
watchdog = "^2.0.1"
Expand Down

0 comments on commit 34fb08a

Please sign in to comment.