#Installing Taiga on CentOS 6 (x64)
##Dependencies ...
yum update -y
yum groupinstall "Development Tools" -y
yum install libxslt-devel libxml2-devel libXt-devel curl git tmux -y
##Installing PostgreSQL
| AZHU.storage = { | |
| save : function(key, jsonData, expirationMin){ | |
| if (!Modernizr.localstorage){return false;} | |
| var expirationMS = expirationMin * 60 * 1000; | |
| var record = {value: JSON.stringify(jsonData), timestamp: new Date().getTime() + expirationMS} | |
| localStorage.setItem(key, JSON.stringify(record)); | |
| return jsonData; | |
| }, | |
| load : function(key){ | |
| if (!Modernizr.localstorage){return false;} |
| drush user-create adminuser --mail="[email protected]" --password="UserPw"; drush user-add-role "administrator" adminuser |
| function urlObject(options) { | |
| "use strict"; | |
| /*global window, document*/ | |
| var url_search_arr, | |
| option_key, | |
| i, | |
| urlObj, | |
| get_param, | |
| key, |
| //this function will work cross-browser for loading scripts asynchronously | |
| function loadScript(src, callback) { | |
| var s, | |
| r, | |
| t; | |
| r = false; | |
| s = document.createElement('script'); | |
| s.type = 'text/javascript'; | |
| s.src = src; | |
| s.onload = s.onreadystatechange = function() { |
| If you are running a large website where you will need to test new features on a seperate url before pushing them live then the following instructions are for you ;) | |
| For this example imagine your url is apple.com and you want a development/staging site on a subdomain which is dev.apple.com | |
| #Setup# | |
| 1. First thing you'll want to do is go ahead and create your website in plesk and add the subdomain dev.apple.com at the same time. | |
| 2. ssh into the server e.g. $ ssh username@ipaddress | |
| 3. Once logged in cd into the private directory (this will be where all git repos are stored) e.g. $ cd ~/private | |
| 4. Create the main repo e.g. $ git init --bare apple.git | |
| 5. Now to clone this new repo on your local machine. $ git clone ssh://username@ipaddres/~/private/apple.com |
#Installing Taiga on CentOS 6 (x64)
##Dependencies ...
yum update -y
yum groupinstall "Development Tools" -y
yum install libxslt-devel libxml2-devel libXt-devel curl git tmux -y
##Installing PostgreSQL
| <?php | |
| use Drupal\Core\Url; | |
| /** | |
| * Implements hook_preprocess_HOOK() for block.html.twig. | |
| */ | |
| function themename_preprocess_block(&$variables) { | |
| // Get Title of Block's parent Node. | |
| $request = \Drupal::request(); |