mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 13:36:22 +05:30
[TASK] better development process
This commit is contained in:
parent
99422e158e
commit
65adddb3dd
3 changed files with 8 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
$config_file = 'config/config.ini';
|
||||||
require 'system/vendor/autoload.php';
|
require 'system/vendor/autoload.php';
|
||||||
require_once "system/upgrade/run.php";
|
require_once "system/upgrade/run.php";
|
||||||
require 'system/htmly.php';
|
require 'system/htmly.php';
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
date_default_timezone_set('Asia/Jakarta');
|
date_default_timezone_set('Asia/Jakarta');
|
||||||
|
|
||||||
// Load the configuration file
|
// Load the configuration file
|
||||||
$config_file = 'config/config.ini';
|
|
||||||
config('source', $config_file);
|
config('source', $config_file);
|
||||||
if(config('timezone')) {
|
if(config('timezone')) {
|
||||||
date_default_timezone_set(config('timezone'));
|
date_default_timezone_set(config('timezone'));
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
config('source', $config_file);
|
||||||
|
|
||||||
$updater = new Kanti\HubUpdater("danpros/htmly");
|
$updater = new Kanti\HubUpdater("danpros/htmly");
|
||||||
$info = $updater->getCurrentInfo();
|
$info = $updater->getCurrentInfo();
|
||||||
$versionNumber = substr($info['tag_name'], 1);
|
$versionNumber = substr($info['tag_name'], 1);
|
||||||
|
|
@ -32,5 +34,8 @@ if (isGraterThan("2.3")) {// 2.4, 2.5, ...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file_put_contents("index.php", file_get_contents("system/upgrade/index.php"));
|
|
||||||
rrmdir("system/upgrade/");
|
if(!config("dev")){
|
||||||
|
file_put_contents("index.php", file_get_contents("system/upgrade/index.php"));
|
||||||
|
rrmdir("system/upgrade/");
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue