update
This commit is contained in:
parent
53fc94139c
commit
fe65cd39bf
3 changed files with 11 additions and 0 deletions
3
ctl
3
ctl
|
@ -84,9 +84,12 @@ if [ "$1" == "ui" ]; then
|
|||
fi
|
||||
if [ "$1" == "update" ]; then
|
||||
cd $BASE/platform
|
||||
echo Update platform..
|
||||
git pull
|
||||
echo Update $NAME..
|
||||
cd $BASE/$NAME
|
||||
git pull
|
||||
find . -name '*.pyc' -exec rm "{}" \;
|
||||
$0 setup
|
||||
$0 update_static > /dev/null
|
||||
exit
|
||||
|
|
|
@ -42,6 +42,7 @@ manager = Manager(app, with_default_commands=False)
|
|||
manager.add_command('db', MigrateCommand)
|
||||
manager.add_command('release', commands.Release)
|
||||
manager.add_command('debug', commands.Debug)
|
||||
manager.add_command('update', commands.Update)
|
||||
#manager.add_command('start', commands.Start)
|
||||
#manager.add_command('stop', commands.Stop)
|
||||
manager.add_command('setup', commands.Setup)
|
||||
|
|
|
@ -32,6 +32,13 @@ class Stop(Command):
|
|||
def run(self):
|
||||
pass
|
||||
|
||||
class Update(Command):
|
||||
"""
|
||||
Update to latest development version
|
||||
"""
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
class Setup(Command):
|
||||
"""
|
||||
setup new node
|
||||
|
|
Loading…
Reference in a new issue