This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Below is the template for Drupal Docksal README, complete the items with "<>". | |
# <Project Name> | |
This is the source code for the official website of <Project name> based on Drupal <version>. | |
## Requirements | |
* [Git](https://git-scm.com/) | |
* [Composer](https://getcomposer.org/download/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$user = User::find(27); | |
$user->password = Hash::make('test'); | |
$user->save(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => 'drupal', | |
'username' => 'drupal', | |
'password' => 'drupal', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$databases['default']['default'] = array ( | |
'database' => 'drupal', | |
'username' => 'drupal', | |
'password' => 'drupal', | |
'prefix' => '', | |
'host' => 'db', | |
'port' => '3306', | |
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Executing build for upgrade" | |
echo "" | |
echo "Registry rebuild" | |
drush rr | |
echo "" | |
# You can run this script with the argument dev. | |
dev_setup=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure it matches your /etc/hosts files. | |
vagrant_hostname: drupalvm-8.dev | |
vagrant_machine_name: drupalvm-8 | |
vagrant_ip: 192.168.76.98 | |
# Map your local path. | |
vagrant_synced_folders: | |
- local_path: ~/VM/drupal-vm-8 | |
destination: /var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Small module to hides a few fields for non admin. | |
*/ | |
use Drupal\Core\Access\AccessResult; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Example of a drushrc.php file with cache tables setup. | |
* | |
* This setup will allow you to create smaller sql dump files by excluding the | |
* cache tables. | |
* drushrc.php can be placed in ~/.drush/ or inside your sites/default. | |
* Then you can use something like: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- -------------------------------------------------------- | |
-- SQL Commands to set up the pmadb as described in the documentation. | |
-- | |
-- This file is meant for use with MySQL 5 and above! | |
-- | |
-- This script expects the user pma to already be existing. If we would put a | |
-- line here to create him too many users might just use this script and end | |
-- up with having the same password for the controluser. | |
-- | |
-- This user "pma" must be defined in config.inc.php (controluser/controlpass) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 |