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
|
fi
|
||||||
if [ "$1" == "update" ]; then
|
if [ "$1" == "update" ]; then
|
||||||
cd $BASE/platform
|
cd $BASE/platform
|
||||||
|
echo Update platform..
|
||||||
git pull
|
git pull
|
||||||
|
echo Update $NAME..
|
||||||
cd $BASE/$NAME
|
cd $BASE/$NAME
|
||||||
git pull
|
git pull
|
||||||
|
find . -name '*.pyc' -exec rm "{}" \;
|
||||||
$0 setup
|
$0 setup
|
||||||
$0 update_static > /dev/null
|
$0 update_static > /dev/null
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -42,6 +42,7 @@ manager = Manager(app, with_default_commands=False)
|
||||||
manager.add_command('db', MigrateCommand)
|
manager.add_command('db', MigrateCommand)
|
||||||
manager.add_command('release', commands.Release)
|
manager.add_command('release', commands.Release)
|
||||||
manager.add_command('debug', commands.Debug)
|
manager.add_command('debug', commands.Debug)
|
||||||
|
manager.add_command('update', commands.Update)
|
||||||
#manager.add_command('start', commands.Start)
|
#manager.add_command('start', commands.Start)
|
||||||
#manager.add_command('stop', commands.Stop)
|
#manager.add_command('stop', commands.Stop)
|
||||||
manager.add_command('setup', commands.Setup)
|
manager.add_command('setup', commands.Setup)
|
||||||
|
|
|
@ -32,6 +32,13 @@ class Stop(Command):
|
||||||
def run(self):
|
def run(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class Update(Command):
|
||||||
|
"""
|
||||||
|
Update to latest development version
|
||||||
|
"""
|
||||||
|
def run(self):
|
||||||
|
pass
|
||||||
|
|
||||||
class Setup(Command):
|
class Setup(Command):
|
||||||
"""
|
"""
|
||||||
setup new node
|
setup new node
|
||||||
|
|
Loading…
Reference in a new issue