Commits

sodas tsai committed 73e464b

Fix issues: forget to assign role in deploy_remote_core

Comments (0)

Files changed (4)

 db.sqlite3
 *.egg-info/
 dist/
+
+NOTE

beanstalk/__init__.py

 
 # Pacakge information
 #-----------------------------------------------------------------------------------------------------------------------
-__version__ = '0.1.81'
+__version__ = '0.1.86'
 VERSION = tuple(map(lambda x: int(x), __version__.split('.')))
 BEANSTALK_ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
 

beanstalk/tasks/app.py

 from beanstalk.validator import validate_web_server, validate_file_existence, validate_project_type, supported_projects
 
 
-@task
+@beanstalk_task(beanstalk_role='app')
 def web_server(*servers):
     """Set targeted web server
     :param servers: list of severs (IP, CIDR, or domain name)
 
 
 @beanstalk_task(beanstalk_role='app')
+@roles('web_servers')
 def deploy_remote_core():
     """ The part to run on each server
     """
     run('bsjack server.reload_app:{name},VERBOSE={verbose:d} --hide=status'.format(
         name=project_name, verbose=beanstalk_settings['VERBOSE']))
 
+    url = 'http://{host}/{project_name}/'.format(host=host_name, project_name=project_name)  # TODO: URL from remote
+    print '{host} is finished. URL is {url}'.format(host=host_name, url=blue(url))
+
     print separator(' . ')
 
 
 Fabric==1.5.1
 Jinja2==2.6
-ground-soil==0.1.2
+Pygments==1.6rc1
+Sphinx==1.1.3
+caktus-sphinx-theme==0.1.0
+docutils==0.10
+ground-soil==0.1.12
 netaddr==0.7.10
 paramiko==1.9.0
 pycrypto==2.6