def create_python_enviroment(self): install_packages(["python-virtualenv"]) virtualenv_bin_file = join(env.remote_virtualenv_path, "bin/activate") if not files.exists(virtualenv_bin_file): create_directories(env.remote_virtualenv_path, env.user, "0750") run("virtualenv --distribute --no-site-packages %s" % env.remote_virtualenv_path)
def setup_server(self, config_file=None): puts('installing NGINX') if not config_file: config_file = os.path.join(scripts.__path__[0], 'nginx_server.conf') install_packages([ 'nginx', ]) puts('adding base HTTP Server config files') files.upload_template(filename=config_file, destination="/etc/nginx/nginx.conf", use_sudo=True)
def setup(self): puts("setup new project") server_upgrade() self.install_pil() install_packages( self.extra_packages + [ 'git-core', 'curl', ] )
def create_python_enviroment(self): install_packages( [ 'python-virtualenv' ] ) virtualenv_bin_file = join(env.remote_virtualenv_path, "bin/activate") if not files.exists(virtualenv_bin_file): create_directories(env.remote_virtualenv_path, env.user, '0750') run("virtualenv --distribute --no-site-packages %s" % env.remote_virtualenv_path)
def setup(self): puts("setup new project...") server_upgrade() install_packages(["git-core"]) self.django.setup() self.deploy()
def setup(self): puts('Installing Gunicorn') install_packages([ 'gunicorn=0.13.4-1', ])