Browse Source

help howto awaryjnie odswiezyc procesy

a.binder 8 năm trước cách đây
mục cha
commit
eeccde8f62
1 tập tin đã thay đổi với 14 bổ sung1 xóa
  1. 14 1
      SE/superedit-INSTALL_SES_PROCESY_A.php

+ 14 - 1
SE/superedit-INSTALL_SES_PROCESY_A.php

@@ -2748,7 +2748,20 @@ function INSTALL_SES_PROCESY_A() {
 
 	 	$exec='php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'test_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'CREATE_ZASOBY_DATABASE_DESC\',\'3\'); " '.$_SERVER['SERVER_NAME'].' FILTR'; //@2013-10-15 staje recznie ?
 	 	exec($exec,$out,$exit);	 	DEBUG_S(-3,$command_id.':out of2/3 CREATE_ZASOBY_DATABASE_DESC',array($exec,$out,$exit),__FILE__,__FUNCTION__,__LINE__);flush();$out="";$exit="";
-	 	$exec='php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'default_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'FROM_ZASOBY_TO_ZASOBY\',\'3\'); " '.$_SERVER['SERVER_NAME'].' %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%'; //import procesow z tagami PISMO
+	 	$exec='php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'default_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'FROM_ZASOBY_TO_ZASOBY\',\'3\'); " '.$_SERVER['SERVER_NAME'].' %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%'; //import procesow z tagami PISMO  -
+	 	// this help is in case of my death ;-)
+	 	// use this unescaped from command to manually rebuild process (before clean it up by using CLEAR_IMPORTED_ZASOBY_REMOTE ) : (rename test.procesy5.pl by correct hostname)
+	 	//   php -r"include('superedit-SQIX_STRUCTURE_DB_SYNC.php') ; SQIX_STRUCTURE_DB_SYNC('import_db','default_db',0,'WYSLIJ_DO_BAZY','FROM_ZASOBY_TO_ZASOBY','1001'); " test.procesy5.pl %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%
+	 	// or 1) prepare config_base_structure_dump.sql and upload it to target server
+	 	//    2) load this dump to some new database
+	 	//	  3) use /garbage (phpMyAdmin) to copy/overwrite this tables: CRM_PROCES, CRM_WSKAZNIK, CRM_LISTA_ZASOBOW, CRM_TESTY_PYTANIA, CRM_IMAGE and CRM_IMPORT_TRANSLATE
+	 	//	  4) try to simulate instalator in following steps (exec this): 
+	 	//		insert ignore into CRM_LISTA_ZASOBOW (`ID`, `DESC`, `TYPE`) VALUES(2, 'BAZA_DANYCH', 'BAZA_DANYCH') ;
+	 	//		insert ignore into CRM_LISTA_ZASOBOW (`ID`,`PARENT_ID`, `DESC`, `TYPE`,`A_STATUS`) VALUES(3,0, 'test_procesy5_pl', 'PODMIOT','NORMAL') ; //(replace test_procesy5_pl)
+	 	// 		update CRM_LISTA_ZASOBOW set \\`DESC\\`=\''.$SERVER_ADDRESS.'\' where \\`DESC\\`=\'biuro.biall-net.pl\' and \\`TYPE\\`=\'SERWER\' and ID=1 "; //replace $SERVER_ADDRESS with properly target server
+	 	//		update CRM_LISTA_ZASOBOW set \\`DESC\\`=\''.$REMOTE_FOLDER_ROOT.'\' where \\`DESC\\`=\'SES_USERS2\' and \\`TYPE\\`=\'BAZA_DANYCH\' and ID=2 "; //replace $REMOTE_FOLDER_ROOT with properly target server escaped string
+	 	//		exec  php bash_install_check.php test_procesy5_pl; //replace test_procesy5_pl with properly target server
+	 	
 	 	exec($exec,$out,$exit);	 	DEBUG_S(-3,$command_id.':out of3/4/1 FROM_ZASOBY_TO_ZASOBY',array($exec,$out,$exit),__FILE__,__FUNCTION__,__LINE__);flush();$out="";$exit="";
 	 	//tutaj bedzie TODO mysqldump do katalogu installera i komendy z tym zwiazane musza byc jakies - przekopiuj dumpa, odpal go w bazie glownej
 	 	$exec='php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'test_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'SYNC_ZASOBY_STRUCTURES_FROM_CONFIG\'); " '.$_SERVER['SERVER_NAME'].' FILTR'; //todo pare razy trzaba powtarzac bo sa bledy