Add timestamp to builds

This commit is contained in:
Pierre HUBERT 2021-02-12 17:06:26 +01:00
parent d87e29d460
commit 37e90f1c18
6 changed files with 9 additions and 6 deletions

View File

@ -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
/**

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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."/";
}

View File

@ -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