Beispiel #1
0
def publishApache(server):
  apache_dirs = {
    'ubuntu' : "/opt/apache/conf/conf.d/",
  }
  
  apache_files = ['conf.d/1_mdt.conf']
  
  publishlib.publish(apache_dirs[server], apache_files, [], "Publishing apache conf")
Beispiel #2
0
def publishEverything(server, publishVE = True):
  publish_dirs = {
    'ubuntu' : "/var/www/html/python/infoxchange",
  }
  
  files = []
  directories = ['static', 'templates', 'infoxchange', 'store', 'api']
  publish_dir = publish_dirs[server]
  
  # Publish VirtualEnv directory
  if(publishVE):
    directories.append('BASE')
  
  print("Publishing files to %s (%s)" % (publish_dir, server))

  #if(publishlib.query_yes_no("Do you want to delete %s?" % publish_dir, 'no')):
  _deletePrevious(publish_dir, files + directories, [])

  # Publish
  publishlib.publish(publish_dir, files, directories, "Publishing infoxchange")