mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-21 19:59:21 +00:00
Add timestamp to builds
This commit is contained in:
parent
d87e29d460
commit
37e90f1c18
3
builder
3
builder
@ -14,6 +14,9 @@ define("OUTPUT_DIRECTORY", __DIR__."/output/");
|
||||
//Temporary file
|
||||
define("TEMP_FILE", __DIR__."/output/temp");
|
||||
|
||||
// Build time
|
||||
define("BUILD_TIME", time());
|
||||
|
||||
//Defines some utilities
|
||||
|
||||
/**
|
||||
|
@ -30,7 +30,7 @@ class Beta_communiquons extends Offline {
|
||||
/**
|
||||
* 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
|
||||
|
@ -35,7 +35,7 @@ class Communiquons extends Offline {
|
||||
/**
|
||||
* Path to assets (URL)
|
||||
*/
|
||||
const ASSETS_URL = "https://communiquons.org/assets/";
|
||||
const ASSETS_URL = "https://communiquons.org/assets/".BUILD_TIME."/";
|
||||
|
||||
/**
|
||||
* Site requires https connection
|
||||
|
@ -35,7 +35,7 @@ class Comunic_io extends Offline {
|
||||
/**
|
||||
* Path to assets (URL)
|
||||
*/
|
||||
const ASSETS_URL = "https://comunic.io/assets/";
|
||||
const ASSETS_URL = "https://comunic.io/assets/".BUILD_TIME."/";
|
||||
|
||||
/**
|
||||
* Site requires https connection
|
||||
|
@ -35,5 +35,5 @@ class Docker extends Offline {
|
||||
/**
|
||||
* 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)
|
||||
*/
|
||||
const PATH_ASSETS = "assets/";
|
||||
const PATH_ASSETS = "assets/".BUILD_TIME."/";
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user