Edit file /home/gitlab/gitlab/config/unicorn.rb
Find line listen "#{app_dir}/tmp/sockets/gitlab.socket" and comment it.
Uncomment line listen "127.0.0.1:8080"
sudo a2enmod proxysudo a2enmod proxy_http
| (function ($) { | |
| Drupal.behaviors.myModule = { | |
| attach: function (context) { | |
| // Code ... | |
| } | |
| } | |
| })(jQuery); |
| Installation drush | |
| cd /usr/local/lib/ | |
| wget http://ftp.drupal.org/files/projects/drush-7.x-5.9.tar.gz | |
| tar zxvf drush-7.x-5.9.tar.gz | |
| cd drush/ <-----There is drush, just checking | |
| cd /usr/local/bin | |
| ln -s /usr/local/lib/drush/drush drush | |
| Then: | |
| Go to the root folder of your website |
| <?php | |
| //set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__); // optional | |
| spl_autoload_register(function ($class) { | |
| $file = preg_replace('#\\\|_(?!.+\\\)#','/', $class) . '.php'; | |
| if (stream_resolve_include_path($file)) | |
| require $file; | |
| }); |
| docker-yml() { | |
| docker inspect -f $' | |
| {{.Name}} | |
| image: {{.Config.Image}} | |
| entrypoint: {{json .Config.Entrypoint}} | |
| environment: {{range .Config.Env}} | |
| - {{.}}{{end}} | |
| ' $1 | |
| } |
| #!/usr/bin/bash | |
| ####################################### | |
| # Helper script to install gluu-server | |
| ######################################## | |
| GLUU_VERSION=2.4.4.2 | |
| wget https://repo.gluu.org/centos/Gluu-centos7.repo -O /etc/yum.repos.d/Gluu.repo | |
| wget https://repo.gluu.org/centos/RPM-GPG-KEY-GLUU -O /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU | |
| rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Sample site</title> | |
| <meta name="description" content="Sample site"> | |
| <meta name="author" content="SampleSite"> |
| git clone [email protected]:marcelbirkner/docker-ci-tool-stack.git | |
| cd docker-ci-tool-stack | |
| docker-compose up |
| #!/bin/bash | |
| for file in `find .` | |
| do | |
| EXTENSION="${file##*.}" | |
| if [ "$EXTENSION" == "php" ] || [ "$EXTENSION" == "phtml" ] | |
| then | |
| RESULTS=`php -l $file` |
| ;;;;;;;;;;;;;;;;;;;;; | |
| ; FPM Configuration ; | |
| ;;;;;;;;;;;;;;;;;;;;; | |
| ; All relative paths in this configuration file are relative to PHP's install | |
| ; prefix (/usr). This prefix can be dynamically changed by using the | |
| ; '-p' argument from the command line. | |
| ; Include one or more files. If glob(3) exists, it is used to include a bunch of | |
| ; files from a glob(3) pattern. This directive can be used everywhere in the |