mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Add timestamp to builds
This commit is contained in:
		
							
								
								
									
										3
									
								
								builder
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								builder
									
									
									
									
									
								
							@@ -14,6 +14,9 @@ define("OUTPUT_DIRECTORY", __DIR__."/output/");
 | 
				
			|||||||
//Temporary file
 | 
					//Temporary file
 | 
				
			||||||
define("TEMP_FILE", __DIR__."/output/temp");
 | 
					define("TEMP_FILE", __DIR__."/output/temp");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Build time
 | 
				
			||||||
 | 
					define("BUILD_TIME", time());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//Defines some utilities
 | 
					//Defines some utilities
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,7 +30,7 @@ class Beta_communiquons extends Offline {
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Path to assets (URL)
 | 
						 * Path to assets (URL)
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	const ASSETS_URL = "https://beta.communiquons.org/assets/";
 | 
						const ASSETS_URL = "https://beta.communiquons.org/assets/".BUILD_TIME."/";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Site requires https connection
 | 
						 * Site requires https connection
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,7 +35,7 @@ class Communiquons extends Offline {
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Path to assets (URL)
 | 
						 * Path to assets (URL)
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	const ASSETS_URL = "https://communiquons.org/assets/";
 | 
						const ASSETS_URL = "https://communiquons.org/assets/".BUILD_TIME."/";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Site requires https connection
 | 
						 * Site requires https connection
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,7 +35,7 @@ class Comunic_io extends Offline {
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Path to assets (URL)
 | 
						 * Path to assets (URL)
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	const ASSETS_URL = "https://comunic.io/assets/";
 | 
						const ASSETS_URL = "https://comunic.io/assets/".BUILD_TIME."/";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Site requires https connection
 | 
						 * Site requires https connection
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,5 +35,5 @@ class Docker extends Offline {
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Path to assets (URL)
 | 
						 * Path to assets (URL)
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	const ASSETS_URL = self::CONTAINER_URL."assets/";
 | 
						const ASSETS_URL = self::CONTAINER_URL."assets/".BUILD_TIME."/";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -32,12 +32,12 @@ class Offline {
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Path to assets (relative to the build folder)
 | 
						 * Path to assets (relative to the build folder)
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	const PATH_ASSETS = "assets/";
 | 
						const PATH_ASSETS = "assets/".BUILD_TIME."/";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Path to assets (URL)
 | 
						 * Path to assets (URL)
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	const ASSETS_URL = "https://devweb.local/comunic/v2/output/assets/";
 | 
						const ASSETS_URL = "https://devweb.local/comunic/v2/output/assets/".BUILD_TIME."/";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Third party CSS files
 | 
						 * Third party CSS files
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user