See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
Laravel 10+, Horizon 5.x, Redis/Valkey 7+
Prepare application
http://yourapp.com/horizoninactive on horizon dashboardInstall redis-server
| # Change to the project directory | |
| cd $FORGE_SITE_PATH | |
| # Turn on maintenance mode | |
| php artisan down || true | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin $FORGE_SITE_BRANCH |
| image: php:7.1.3 | |
| pipelines: | |
| branches: | |
| master: | |
| - step: | |
| caches: | |
| - composer | |
| script: | |
| - apt-get update && apt-get install -y unzip openssh-client rsync | |
| - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.logRUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ | <?php | |
| function get_eu_countries() { | |
| $countries = []; | |
| $countries['AT'] = ['name' => 'Austria',]; | |
| $countries['BE'] = ['name' => 'Belgium',]; | |
| $countries['BG'] = ['name' => 'Bulgaria',]; | |
| $countries['CY'] = ['name' => 'Cyprus',]; | |
| $countries['CZ'] = ['name' => 'Czech Republic',]; | |
| $countries['DE'] = ['name' => 'Germany',]; |
| -- without using SET variable | |
| SELECT t.id, | |
| t.count, | |
| (@running_total := @running_total + t.count) AS cumulative_sum | |
| FROM TABLE t | |
| JOIN (SELECT @running_total := 0) r | |
| ORDER BY t.id | |
| -- with SET variable | |
| SET @running_total := 0; |
| $(function () { | |
| // Get the template HTML and remove it from the doumenthe template HTML and remove it from the doument | |
| var previewNode = document.querySelector("#referenceTemplate"); | |
| previewNode.id = ""; | |
| var previewTemplate = previewNode.parentNode.innerHTML; | |
| previewNode.parentNode.removeChild(previewNode); | |
| Dropzone.autoDiscover = false; | |
| var myDropzone = new Dropzone(".uploadReference", {// Make the whole body a dropzone | |
| url: "ajax/upload-file.php", // Set the url |
| #!/bin/bash | |
| laravel new $1 | |
| cd $1 | |
| composer install | |
| yarn install | |
| touch README.md | |
| cp .env.example .env | |
| git init | |
| git add -A |