Example #1
0
def html(script="home.html"):
    """upload html file to Android
    """
    pushhtml()
    env()
Example #2
0
def qpy(script="hello.py"):
    '''main develop tools, auto upload and running in Android
    '''
    pushproj()
    qpy_run_it(script)
    env()
Example #3
0
import environ

from fabric.api import cd, env, local, run, task
from fabric.context_managers import prefix
from fabric.contrib import django, project
from fabric.contrib.console import prompt

HERE = os.path.abspath(os.path.dirname(__file__))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
os.environ.setdefault("PRODUCTION_HOSTS", "")

environ.Env.read_env()
env = environ.Env()

PRODUCTION_HOSTS = env('PRODUCTION_HOSTS', None)
# django.settings_module('config.settings.local')

env.hosts = PRODUCTION_HOSTS

env.fixtures = (
    'flatpages',
    'restful.goodscategory',
    'restful.preselectioncategory',
    'restful.total',
    'restful.goods',
    'restful.collect',
    'restful.prompt',
    'restful.banner',
    'restful.holiday',
    'restful.queryrule',