Example #1
0
    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)
Example #2
0
 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)
Example #3
0
 def setup(self):
     puts("setup new project")
     server_upgrade()
     self.install_pil()
     install_packages(
         self.extra_packages +
         [
             'git-core',
             'curl',
         ]
     )
Example #4
0
    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)
Example #5
0
 def setup(self):
     puts("setup new project...")
     server_upgrade()
     install_packages(["git-core"])
     self.django.setup()
     self.deploy()
Example #6
0
 def setup(self):
     puts('Installing Gunicorn')
     install_packages([
         'gunicorn=0.13.4-1',
     ])
Example #7
0
 def setup(self):
     puts('Installing Gunicorn')
     install_packages([
         'gunicorn=0.13.4-1',
     ])