wrk -t4 -c400 -d10s http://127.0.0.1:1337/
Running 10s test @ http://127.0.0.1:1337/
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 7.02ms 6.94ms 82.86ms 85.27%
location / { | |
# try_files $uri @rewrite; # For Drupal <= 6 | |
try_files $uri /index.php?$query_string; # For Drupal >= 7 | |
} |
Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
To use: | |
1. Install [Ansible](https://www.ansible.com/) | |
2. Setup an Ubuntu 16.04 server accessible over ssh | |
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |
<?php // {custom_module}/src/Plugin/migrate/process/CustomFile.php Replace {custom_nodule} with your module's machine name | |
namespace Drupal\{custom_module}\Plugin\migrate\process; // Replace {custom_nodule} with your module's machine name | |
use Drupal\migrate\Plugin\MigrationInterface; | |
use Drupal\file\Plugin\migrate\process\d6\CckFile; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
/** | |
* @MigrateProcessPlugin( |
<?php | |
abstract class TestMigration extends Migration { | |
public function __construct($arguments) { | |
parent::__construct($arguments); | |
$this->issuePattern = 'https://www.drupal.org/node/2539244:'; | |
$this->team = array( |
id: d6_node | |
label: Nodes | |
migration_tags: | |
- Drupal 6 | |
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver | |
source: | |
plugin: d6_node | |
process: | |
nid: nid | |
vid: vid |
DB_BACKUP_PATH="$(pwd)/$(ls -t | grep \.sql\.gz$ | head -n1)" | |
echo $DB_BACKUP_PATH |
Vagrant.configure(2) do |config| | |
config.vm.box = "phusion/ubuntu-14.04-amd64" | |
config.vm.network "forwarded_port", guest: 3306, host: 3306 | |
# If errors occur, try running "vagrant provision" manually | |
# after "vagrant up" | |
config.vm.provision :docker | |
# To use docker_compose as a provisioning tool, install | |
# vagrant-docker-compose plugin first. It should also solve the |