def deployFromPath(databaseFullPath): print ('Deploy database from {databaseFullPath}') resources.deleteFile(yadomsServer.databasePath() + "-journal") resources.deployFile(databaseFullPath, yadomsServer.databasePath())
def deploy(databaseName): print 'Deploy database ', databaseName resources.deployFile(os.path.join("resources", "databases", databaseName + ".db3"), yadomsServer.databasePath())
def deploy(configName): print 'Deploy configuration ', configName resources.deployFile(os.path.join("resources", "config", configName + ".ini"), os.path.join(yadomsServer.binaryPath(), "yadoms.ini"))
def deploy(configName): print 'Deploy configuration ', configName resources.deployFile( os.path.join("resources", "config", configName + ".ini"), os.path.join(yadomsServer.binaryPath(), "yadoms.ini"))
def deploy(databaseName): print 'Deploy database ', databaseName resources.deployFile( os.path.join("resources", "databases", databaseName + ".db3"), yadomsServer.databasePath())