Контроль версии из хеша git

This commit is contained in:
Krivchikov Dmitry 2014-04-07 17:43:30 +04:00
parent fbc95c3731
commit 8d1ef522dd
4 changed files with 6 additions and 2 deletions

View File

@ -8,5 +8,6 @@ return array(
'password' => 'root',
'dbname' => 'poi',
),
//'version' => trim(file_get_contents(dirname(__FILE__).'/version')),
);

View File

@ -10,8 +10,8 @@ class IndexController extends Controller
{
self::addScript('/js/jquery-2.1.0.min.js');
self::addScript('http://api-maps.yandex.ru/2.0-stable/?load=package.standard&lang=ru-RU&mode=release');
self::addScript('/js/main.js');
self::addStyle('/css/style.css');
self::addScript('/js/main.js?ver='.App::getConfig('version'));
self::addStyle('/css/style.css?ver='.App::getConfig('version'));
$category = new Category();

1
ground/version Normal file
View File

@ -0,0 +1 @@
abcde

2
update.sh Executable file
View File

@ -0,0 +1,2 @@
git pull
git rev-parse HEAD | cut -c-5 > ground/version