lullabot / drupal-boilerplate Goto Github PK
View Code? Open in Web Editor NEWBoilerplate project for drupal development
Home Page: http://lullabot.github.com/drupal-boilerplate
Boilerplate project for drupal development
Home Page: http://lullabot.github.com/drupal-boilerplate
This may be what I'm used to, but when all the patches are provided in the patches directory, when I go to actually update modules, themes, or core, I find that it takes me longer to figure out if a patch was applied or not.
What i'm used to:
/docroot
, for modules, patches go in the module directory i.e. /docroot/sites/all/modules/contrib/mymodule
)./docroot/sites/all/modules/contrib/mymodule
directory that a patch file has gone missing and that I likely need to re-apply it.I propose getting rid of the /patches directory.
There was a bad commit that push a drupal site to the actual docroot directory. I reverted the commit nut its still in the history.
We should completely remove that from the history.
Because having a directory patches doesn't seem to scale much.
I believe this is due a change to the last version of casper
Drush policy is doing a preg_match() on /prod/ but we don't have "prod" in our examples aliases. Should we change that to match "live"? Or am I totally misunderstanding the command?
cc: @juampy72
It's close to devify except it abstracts things. Currently with devify you could only have one group of settings.
With Drush Environments you can only have multiple environments which each have different settings.
Or we could just could have them both available.
Thoughts?
cc @juampy72 Also it'll be nice to merge and make it a full project somewhere since they're both pretty useful.
If any module listed in the enable-modules
array is not present in modules/
, drush will return "devified!" without enabling any of the modules in the list.
When running the drush build command with a site with the Display Suite module enabled, you get the following error:
drush: You need to set a name for your layout. Type "drush help ds-build" for help.
Drush command terminated abnormally due to an unrecoverable error.
This is due to the fact that the Display Suite drush integration's ds.drush.inc file has a function named drush_ds_build:
/**
* Create a basic template and configuration file for a new Display Suite layout.
*/
function drush_ds_build($name = NULL) {
// Determine the layout name.
if (!isset($name)) {
$name = drush_get_option('name');
}
if (!$name) {
drush_die(dt('You need to set a name for your layout. Type "drush help ds-build" for help.'));
}
The drush --debug output, with an added backtrace in drush_ds_build():
Returned from hook _drush_build [12.22 sec, 44.43 MB] [debug]
Calling hook drush_ds_build [12.22 sec, 44.44 MB] [debug]
#0 drush_ds_build()
#1 call_user_func_array(drush_ds_build, Array ()) called at [/home/davereid/Sync/opt/drush/includes/command.inc:362]
#2 _drush_invoke_hooks(Array ([description] => Runs database updates, reverts features and clears caches.,[callback] => drush_command,[bootstrap] => 5,[command] => build,[command-hook] => build,[invoke hooks] => 1,[callback arguments] => Array (),[commandfile] => build,[path] => /home/davereid/Sync/lullabot/projects/Publisher7_bravo/drush/commands,[engines] => Array (),[primary function] => _drush_build,[sections] => Array ([examples] => Examples,[arguments] => Arguments,[options] => Options),[arguments] => Array (),[required-arguments] => ,[options] => Array (),[sub-options] => Array (),[allow-additional-options] => ,[examples] => Array (),[aliases] => Array (),[core] => Array (),[scope] => site,[drupal dependencies] => Array (),[drush dependencies] => Array (),[handle-remote-commands] => ,[strict-option-handling] => ,[bootstrap_errors] => Array (),[topics] => Array (),[hidden] => ,[category] => build,[argument-description] => Array ()), Array ()) called at [/home/davereid/Sync/opt/drush/includes/command.inc:214]
#3 drush_command()
#4 call_user_func_array(drush_command, Array ()) called at [/home/davereid/Sync/opt/drush/includes/command.inc:182]
#5 drush_dispatch(Array ([description] => Runs database updates, reverts features and clears caches.,[callback] => drush_command,[bootstrap] => 5,[command] => build,[command-hook] => build,[invoke hooks] => 1,[callback arguments] => Array (),[commandfile] => build,[path] => /home/davereid/Sync/lullabot/projects/Publisher7_bravo/drush/commands,[engines] => Array (),[primary function] => _drush_build,[sections] => Array ([examples] => Examples,[arguments] => Arguments,[options] => Options),[arguments] => Array (),[required-arguments] => ,[options] => Array (),[sub-options] => Array (),[allow-additional-options] => ,[examples] => Array (),[aliases] => Array (),[core] => Array (),[scope] => site,[drupal dependencies] => Array (),[drush dependencies] => Array (),[handle-remote-commands] => ,[strict-option-handling] => ,[bootstrap_errors] => Array (),[topics] => Array (),[hidden] => ,[category] => build,[argument-description] => Array ())) called at [/home/davereid/Sync/opt/drush/drush.php:92]
#6 _drush_bootstrap_and_dispatch() called at [/home/davereid/Sync/opt/drush/drush.php:61]
#7 drush_main() called at [/home/davereid/Sync/opt/drush/drush.php:16]
I have a local system alias that points to a drupal-boilerplate site's docroot. This site also has it's own drush configuration file located at /var/www/mysite.com/drush/drushrc.php
.
// ~/drush/local.drush.aliases.drushrc.php
$aliases['mysite'] = array(
'root' => '/var/www/mysite.com/docroot',
'uri' => 'http://mysite.com/',
);
If I were to run the drush @local.mysite status config
command from my home directory (and not anything from inside the mysite.com directory), this is what I get for my drush output:
drush @local.lullabot status config
PHP configuration : /etc/php5/cli/php.ini
Drush configuration : /home/davereid/.drush/drushrc.php
This is the bug. It should be including the file from /var/www/mysite.com/drush/drushrc.php
. This is the expected output:
drush @local.lullabot status config
PHP configuration : /etc/php5/cli/php.ini
Drush configuration : /var/www/mysite.com/drush/drushrc.php
/home/davereid/.drush/drushrc.php
Hi! Are there any plans to move casperjs to a drupal module?
Meanwhile I have forked this current code on my github adapting it to a simple drupal module.
(https://github.com/jorgetutor/casperjs.git)
Minor changes:
I volunteer to assist in this integration!
Add .swp to gitignore file
Typically on our projects we've been coming up with an install profile using profiler. It's pretty great for resetting your environment quickly and easily (sometimes combined with a quick bash script to run drush commands).
Opening this up for discussion to see if others think it would be good to have in place for the boilerplate.
I need to clone locally a project based on your drupal-boilerplate and build it based on a makefile located in /docroot directory.
Could you assist me on how to do it using Vagrant and Drupal VM?
It seems like something that should be hosted outside of drupal-boilerplate and have it's own project. But it should keep being including with drupal-boilerplate. I just think development should happen separate.
I wrote a sandbox project that does the same thing a long time ago -> http://drupal.org/sandbox/ericduran/1154642
We should combine it and so other people could start using it. The advantage my project has is it allows site specific or user specific settings.
It's also touches a lot less stuff, so it doesn't sanitize your DB by default :)
Either way I love the addition. We should do more with it.
cc @juampy72
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.