Subversion Repositories SmartDukaan

Rev

Rev 28320 | Rev 29900 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28320 Rev 29881
Line 87... Line 87...
87
	public static final int Warranty = 6;
87
	public static final int Warranty = 6;
88
	public static final int Package_Contents = 7;
88
	public static final int Package_Contents = 7;
89
	private static final String IMAGE_REMOTE_DIR = "/var/www/dtrdashboard/uploads/campaigns/";
89
	private static final String IMAGE_REMOTE_DIR = "/var/www/dtrdashboard/uploads/campaigns/";
90
	private static final String IMAGE_STATIC_SERVER_URL = "https://images.smartdukaan.com/uploads/campaigns";
90
	private static final String IMAGE_STATIC_SERVER_URL = "https://images.smartdukaan.com/uploads/campaigns";
91
 
91
 
92
	private static final String REMOTE_DIR = "/var/www/static.saholic.com/images/media/";
92
	//private static final String REMOTE_DIR = "/var/www/static.saholic.com/images/media/";
-
 
93
	private static final String REMOTE_DIR = "/tmp";
93
	private static final String STATIC_SERVER_URL = "https://static%d.smartdukaan.com/images/media/";
94
	private static final String STATIC_SERVER_URL = "https://static%d.smartdukaan.com/images/media/";
94
 
95
 
95
	private static final String THUMBNAIL = "thumbnail";
96
	private static final String THUMBNAIL = "thumbnail";
96
	private static final String ICON = "icon";
97
	private static final String ICON = "icon";
97
	private static final String DEFAULT = "default";
98
	private static final String DEFAULT = "default";
Line 332... Line 333...
332
	}
333
	}
333
 
334
 
334
	private ChannelSftp setupJsch() throws JSchException {
335
	private ChannelSftp setupJsch() throws JSchException {
335
		JSch jsch = new JSch();
336
		JSch jsch = new JSch();
336
		Session jschSession = jsch.getSession("root", "192.168.179.131");
337
		Session jschSession = jsch.getSession("root", "192.168.179.131");
-
 
338
		//Session jschSession = jsch.getSession("root", "173.255.254.24");
-
 
339
		LOGGER.info("getClass().getResource(\"id_rsa\") {}", getClass().getClassLoader().getResource("id_rsa").getPath());
-
 
340
		jsch.addIdentity(getClass().getClassLoader().getResource("id_rsa").getPath());
337
		jschSession.setPassword("spic@2015static0");
341
		//jschSession.setPassword("spic@2015static0");
338
		jschSession.setConfig("StrictHostKeyChecking", "no");
342
		jschSession.setConfig("StrictHostKeyChecking", "no");
339
		jschSession.connect();
343
		jschSession.connect();
340
		return (ChannelSftp) jschSession.openChannel("sftp");
344
		return (ChannelSftp) jschSession.openChannel("sftp");
341
	}
345
	}
342
 
346